| commit | 4af40c4083efdc50792dc7eecbb7b7fae713ca12 | [log] [tgz] |
|---|---|---|
| author | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Mar 19 00:01:12 2013 +0000 |
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Mar 19 00:01:12 2013 +0000 |
| tree | c94b1ca10efb5cf84b1884bc6ee068a27c4a24ac | |
| parent | fc9aad64361fbd887848d190c4320e257a6219ba [diff] |
PR15383: When -fsanitize=float-cast-overflow checks a float-to-int conversion, it wasn't taking into account that the float should be truncated *before* the range check happens. Thus (unsigned)-0.99 and (unsigned char)255.9 have defined behavior and should not be trapped. llvm-svn: 177362