commit | 2116b144cf07f2574d20517187eb8863645376eb | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Sun Dec 18 02:33:09 2011 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Sun Dec 18 02:33:09 2011 +0000 |
tree | feb8e4d4d5b0e3a20f6281f2a854d2dd065340a4 | |
parent | a1be278c4f3a234ff61f04018d26c6beecde1654 [diff] |
PR11604: don't allow floating-literal-to-integer casts in ICEs if the (truncated) floating literal value does not fit into the destination type. Such casts have undefined behavior at translation time; treating them as non-ICE matches the behavior of modern gcc versions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146842 91177308-0d34-0410-b5e6-96231b3b80d8