diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-19 00:01:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-19 00:01:12 +0000 |
commit | aa624954c50a741528752b85d3a3bf11ef9771db (patch) | |
tree | 7bc7bc744845ad6d2f8681a6c71c805b8ac02cee /lib/Serialization/ASTReader.cpp | |
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
Diffstat (limited to 'lib/Serialization/ASTReader.cpp')
0 files changed, 0 insertions, 0 deletions