diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-06-04 15:55:00 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-06-04 15:55:00 +0000 |
commit | d92291568586e13b1484cd720f6faf939f0b2623 (patch) | |
tree | 99b8475e94455adc5fc6c8a9a16b2fa310101af3 /llvm/lib/Bitcode/Writer/BitWriter.cpp | |
parent | c0aeadf92d8f8354f6e6f8f9a164f7bfbb106247 (diff) | |
download | llvm-d92291568586e13b1484cd720f6faf939f0b2623.zip llvm-d92291568586e13b1484cd720f6faf939f0b2623.tar.gz llvm-d92291568586e13b1484cd720f6faf939f0b2623.tar.bz2 |
Switch lowering: fix assert in buildBitTests (PR23738)
When checking (High - Low + 1).sle(BitWidth), BitWidth would be truncated
to the size of the left-hand side. In the case of this PR, the left-hand
side was i4, so BitWidth=64 got truncated to 0 and the assert failed.
llvm-svn: 239048
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitWriter.cpp')
0 files changed, 0 insertions, 0 deletions