diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-06-23 07:32:55 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-06-23 07:32:55 +0000 |
commit | c16021514c74f41e7f09e7068aaa23a29cb297c1 (patch) | |
tree | 06e641ac6f989ebc962db0eb000f93cc256f8112 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | c1709d387e81fd7f18095363f5f6a4af883da3a7 (diff) | |
download | bcm5719-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