Fix a typo: use of cast where dyn_cast was intended
authorPhilip Reames <listmail@philipreames.com>
Thu, 4 Dec 2014 17:27:58 +0000 (17:27 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 4 Dec 2014 17:27:58 +0000 (17:27 +0000)
commitad90e3ad14488b9b78d2ac4dd39f02ce2e35f264
treed05ed49a8e85f50085f7b8b45b380bd855568d57
parent86bf88145b8552bdec88e6d0538b7afedf825c0c
Fix a typo: use of cast where dyn_cast was intended

This bug has the effect of converting a test of isGCRelocate(InvokeInst*) from a false return to a crash.

This may be the root cause of the crash Joerg reported against r223137, but I'm still waiting for a clean build of clang to complete to be able to confirm.  Once I've confirmed the issue, I'll submit a test case separately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223370 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Statepoint.cpp