diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-06-23 07:28:57 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-06-23 07:28:57 +0000 |
commit | 6499b5f086a2390b3d3d57087e90bdeb1b43cc47 (patch) | |
tree | fa0435fd3986ba5a683cbd8c410b28be44429d30 /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | 47ab1fa6d6af6569c9b6cf2049c91aae1bfc2402 (diff) | |
download | bcm5719-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