-fcatch-undefined-behavior: Start checking loads and stores for null pointers.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 Nov 2012 07:22:08 +0000 (07:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 Nov 2012 07:22:08 +0000 (07:22 +0000)
commit2d8b294b3c49628b22d0607ea98c42964f597415
tree329610eae7761df0fbcb8045805f4369d3f97fd7
parentc89e75e93e24613fe95a72df4007dff5b97a1beb
-fcatch-undefined-behavior: Start checking loads and stores for null pointers.
We want the diagnostic, and if the load is optimized away, we still want to
trap it. Stop checking non-default address spaces; that doesn't work in
general.

llvm-svn: 167219
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/catch-undef-behavior.c