Fix another verifier crash where a GC intrinsic would look at the internals of anothe...
authorOwen Anderson <resistor@mac.com>
Wed, 11 Mar 2015 06:57:30 +0000 (06:57 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 11 Mar 2015 06:57:30 +0000 (06:57 +0000)
commit1b3b8e5be8a8ec1b5f207c57b7a0b301f7f6a220
tree1ece3d88e06194f411ade392d7d0558047e303c1
parent21d3c127501986428edd1d388311eb8ea80a60cc
Fix another verifier crash where a GC intrinsic would look at the internals of another intrinsic in order to verify itself.

This causes a crash if the referenced intrinsic was malformed.  In this case, we
would already have reported an error on the referenced intrinsic, but then
crashed on the second one when it tried to introspect the first without
error checking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231910 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp
test/Verifier/invalid-statepoint2.ll [new file with mode: 0644]