summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-06-23 07:28:57 +0000
committerJustin Bogner <mail@justinbogner.com>2015-06-23 07:28:57 +0000
commit6499b5f086a2390b3d3d57087e90bdeb1b43cc47 (patch)
treefa0435fd3986ba5a683cbd8c410b28be44429d30 /clang/lib/CodeGen/CGExprConstant.cpp
parent47ab1fa6d6af6569c9b6cf2049c91aae1bfc2402 (diff)
downloadbcm5719-llvm-6499b5f086a2390b3d3d57087e90bdeb1b43cc47.tar.gz
bcm5719-llvm-6499b5f086a2390b3d3d57087e90bdeb1b43cc47.zip
[mips] Fix some UB by shifting before sign-extending
Avoid shifting a negative value by sign-extending after the shift. Fixes a couple of tests that were failing under ubsan. llvm-svn: 240381
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud