Casting: assert that pointer arguments to isa<> are non-null.
authorJordan Rose <jordan_rose@apple.com>
Sat, 22 Sep 2012 01:24:18 +0000 (01:24 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 22 Sep 2012 01:24:18 +0000 (01:24 +0000)
commitf5091b476c46333ecfcf095cd2e422e9748e9546
tree91433aeae3998d8da764592eb5bdb129aea932c7
parent3bbdddf527c762085802544665d6e77471ea035b
Casting: assert that pointer arguments to isa<> are non-null.

This silences several analyzer warnings within LLVM, and provides a slightly
nicer crash experience when someone calls isa<>, cast<>, or dyn_cast<> with
a null pointer.

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