]> granicus.if.org Git - clang/commit
Fix undefined behavior: don't call ObjCInterfaceDecl::isArcWeakrefUnavailable
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Aug 2012 04:53:18 +0000 (04:53 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Aug 2012 04:53:18 +0000 (04:53 +0000)
commit4e90bc39f052ea0046d40aebbb42732ad1f21f50
tree2f2fcb62ea720a41475540b1ea0a706eb186b7c2
parentea93e40785ffeadfac66b948c95f9490ec26207a
Fix undefined behavior: don't call ObjCInterfaceDecl::isArcWeakrefUnavailable
on a null pointer. (This function happens to work for a null 'this' pointer, so
no test.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162427 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp