]> granicus.if.org Git - clang/commit
UBSan: Don't diagnose inf/nan conversions between floating-point types. It's far...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 27 Mar 2013 23:20:25 +0000 (23:20 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 27 Mar 2013 23:20:25 +0000 (23:20 +0000)
commit508764518dd54eb7be82b0474cb42ef8dbe9ebd3
treea719f1545893e39f38fce3c8f5853b749468d656
parent87d2a37bde2890745a2d30d27985e354d91c2556
UBSan: Don't diagnose inf/nan conversions between floating-point types. It's far from clear whether these have undefined behavior, and these checks are helping no-one. Keep the double->float overflow warnings, though, since those are useful in practice, even though it's unclear whether such operations have defined behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178194 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/catch-undef-behavior.c