Verifier: Don't crash on null entries in debug info retained types list
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 22 Aug 2015 22:36:40 +0000 (22:36 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 22 Aug 2015 22:36:40 +0000 (22:36 +0000)
commitbfddc41d9c293d3cb6b15bc8cce304b358b7153d
treea1441cfc8ac83a4789315eb6182637d8e8dbabbd
parent18fecd3d4502b23abfdf989070708b303e32cd5b
Verifier: Don't crash on null entries in debug info retained types list

There was already a good error path for this. Added a test for it & made
a minor code change to ensure the error path was actually reached,
rather than crashing before we got that far.

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