diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-01-09 19:21:04 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-01-09 19:21:04 +0000 |
commit | f3c832a9700207754d56cc1d041f6ad2290f8d1c (patch) | |
tree | 270c525dc2e0feb3f9ad0cfb4b555e7aba315d40 /llvm/lib/MC/MCObjectStreamer.cpp | |
parent | 771ec9f39939545d336209285d91640209b3d8c7 (diff) | |
download | bcm5719-llvm-f3c832a9700207754d56cc1d041f6ad2290f8d1c.tar.gz bcm5719-llvm-f3c832a9700207754d56cc1d041f6ad2290f8d1c.zip |
[OpenMP] Fix handling of clause on wrong directive, by Joel. E. Denny
Summary:
First, this patch fixes an assert failure when, for example, "omp for"
has num_teams.
Second, this patch prevents duplicate diagnostics when, for example,
"omp for" has uniform.
This patch makes the general assumption (even where it doesn't
necessarily fix an existing bug) that it is worthless to perform sema
for a clause that appears on a directive on which OpenMP does not
permit that clause. However, due to this assumption, this patch
suppresses some diagnostics that were expected in the test suite. I
assert that those diagnostics were likely just distracting to the
user.
Reviewers: ABataev
Reviewed By: ABataev
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D41841
llvm-svn: 322107
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
0 files changed, 0 insertions, 0 deletions