commit | aa624954c50a741528752b85d3a3bf11ef9771db | [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 | 7bc7bc744845ad6d2f8681a6c71c805b8ac02cee | |
parent | 8a1115f382cd61f560b3429a04ddaa70d9409b71 [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177362 91177308-0d34-0410-b5e6-96231b3b80d8