summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-06-23 07:32:55 +0000
committerJustin Bogner <mail@justinbogner.com>2015-06-23 07:32:55 +0000
commitc16021514c74f41e7f09e7068aaa23a29cb297c1 (patch)
tree06e641ac6f989ebc962db0eb000f93cc256f8112 /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parentc1709d387e81fd7f18095363f5f6a4af883da3a7 (diff)
downloadbcm5719-llvm-c16021514c74f41e7f09e7068aaa23a29cb297c1.tar.gz
bcm5719-llvm-c16021514c74f41e7f09e7068aaa23a29cb297c1.zip
MCExpr: Avoid UB by evaluating this shift as unsigned
We hit undefined behaviour in some MCExpr tests when the LHS of a left shift is -1. Twos-complement semantics are completely reasonable here, so we should just do the shift in unsigned. llvm-svn: 240385
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud