commit | 5a11abaf2c21e203acaedea37ebd151fa1124d89 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Jul 18 18:43:12 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Jul 18 18:43:12 2008 +0000 |
tree | 80fef8e3543f00e135f5bb7a2520bc59b1706d5c | |
parent | fa82857e413578c35b39f5dc1e7ea8525e02e6bf [diff] |
In the CBackend, use casts to force integer add, subtract, and multiply to be done as unsigned, so that they have well defined behavior on overflow. This fixes PR2408. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53767 91177308-0d34-0410-b5e6-96231b3b80d8