Check for NULL before traversing the isa<> type hierarchy checking with a
authorScott Michel <scottm@aero.org>
Sat, 22 Nov 2008 23:49:26 +0000 (23:49 +0000)
committerScott Michel <scottm@aero.org>
Sat, 22 Nov 2008 23:49:26 +0000 (23:49 +0000)
commitbab6436b1726a2db21ab1e024540e98c02a5a009
tree4c800bed4de2bc27e0980d9eb8bcbf2f0751a89a
parent7a1527389265ad5444ac1a4a3dd8901c2f20e902
Check for NULL before traversing the isa<> type hierarchy checking with a
NULL-based reference.

Note: Encountered this a few times on Tiger + gcc 4.0.1. Might just be a
platform-specific compiler issue, but it's good defensive programming in any
case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59890 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Casting.h