]> granicus.if.org Git - clang/commit
In nothrow new-expressions, null-check the result if we're going to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 10 Jan 2019 00:03:29 +0000 (00:03 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 10 Jan 2019 00:03:29 +0000 (00:03 +0000)
commit6e2340bf44dc6667ee701014db7a27374fb54c15
treeb036a000ab9da35c337443a862eae78dff6b5b43
parentc5a37dd350a4e86e75ae49e3a4d6c55c0e803160
In nothrow new-expressions, null-check the result if we're going to
apply sanitizers to it.

This avoids a sanitizer false positive that we are initializing a null
pointer.

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