The included test case triggered a sign assertion on the result in
Success(). This was caused by the APSInt created for a bitcast
having its signedness bit inverted. The second APSInt constructor
argument is isUnsigned, so invert the result of
isSignedIntegerType.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, great! Thanks! Perhaps the test can be simplified before committing...
clang/test/CodeGenOpenCL/vector_literals.cl | ||
---|---|---|
71 | I wonder if both (int2) are needed i.e. the cast one could be ommitted? |
clang/test/CodeGenOpenCL/vector_literals.cl | ||
---|---|---|
71 | The cast is actually necessary, because the fix is in the code that handles the cast (case CK_BitCast if you expand the code above my change). |
I wonder if both (int2) are needed i.e. the cast one could be ommitted?