diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2021-01-05 11:51:10 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2021-01-05 11:51:10 +0000 |
commit | 0e4d2361b817bd16f97cd45d5792017edc3891ee (patch) | |
tree | 1ff8ab7ef66ab7819ca441e4bcef557589aea264 /llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp | |
parent | f784be0777f34a5b3bc3da6892ca242de7840fce (diff) | |
download | llvm-0e4d2361b817bd16f97cd45d5792017edc3891ee.zip llvm-0e4d2361b817bd16f97cd45d5792017edc3891ee.tar.gz llvm-0e4d2361b817bd16f97cd45d5792017edc3891ee.tar.bz2 |
[OpenCL] Warn about side effects for unevaluated vec_step arg
The argument to the `vec_step` builtin is not evaluated. Hoist the
diagnostic for this in `Sema::CheckUnaryExprOrTypeTraitOperand` such
that it comes before `Sema::CheckVecStepTraitOperandType`.
A minor side-effect of this change is that it also produces the
warning for `co_await` and `co_yield` as `sizeof` arguments now, which
seems to be reasonable given that the warning is emitted for `typeid`
already.
Differential Revision: https://reviews.llvm.org/D91348
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp')
0 files changed, 0 insertions, 0 deletions