commit | 1e4a7e02f84e3ff320ebb5fdaf04dff29a4e70f3 | [log] [tgz] |
---|---|---|
author | Justin Bogner <mail@justinbogner.com> | Tue Jun 23 07:32:55 2015 +0000 |
committer | Justin Bogner <mail@justinbogner.com> | Tue Jun 23 07:32:55 2015 +0000 |
tree | b29281e133bc6cd327f563090a55f61e34c31723 | |
parent | 46a8f931444363ad3387ae26189e83dc16155696 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240385 91177308-0d34-0410-b5e6-96231b3b80d8