diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-07-18 17:03:09 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-07-18 17:03:09 +0000 |
commit | a2a218fbd4b15fb7af1a4e587377bd93336b5cf5 (patch) | |
tree | f43fd8b155f10f0fb242b5328834c2bc99153449 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 301b1fa637ad2add819b8c0ef0495da05342d87c (diff) | |
download | llvm-a2a218fbd4b15fb7af1a4e587377bd93336b5cf5.zip llvm-a2a218fbd4b15fb7af1a4e587377bd93336b5cf5.tar.gz llvm-a2a218fbd4b15fb7af1a4e587377bd93336b5cf5.tar.bz2 |
[MathExtras] Fix UB in minIntN
We negated a value with a signed type which invited problems when that
value was the most negative signed number. Use an unsigned type
for the value instead. It will compute the same twos complement
result without the UB.
llvm-svn: 275815
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions