aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2021-01-27 09:30:26 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2021-01-27 09:30:26 +0000
commit79c727328b908051616ed39ceae137b5f1d064cd (patch)
tree6a325981a0fea8e7ea541aec48b817418427d68a /llvm/lib/Bitcode
parent7cd420649f9f68e3833ddf968ec9f39d0b9a0e57 (diff)
downloadllvm-79c727328b908051616ed39ceae137b5f1d064cd.zip
llvm-79c727328b908051616ed39ceae137b5f1d064cd.tar.gz
llvm-79c727328b908051616ed39ceae137b5f1d064cd.tar.bz2
[clang] Fix signedness in vector bitcast evaluation
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`. Relanding this patch after reverting. The test case had to be updated to be insensitive to 32/64-bit extractelement indices. Differential Revision: https://reviews.llvm.org/D95135
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions