Fix crasher in CodeView test.
authorZachary Turner <zturner@google.com>
Fri, 19 May 2017 00:56:39 +0000 (00:56 +0000)
committerZachary Turner <zturner@google.com>
Fri, 19 May 2017 00:56:39 +0000 (00:56 +0000)
commit8f1d87a79abb91cb44292e5cfde350e85a119385
tree311cec6807f7e726257965fe432125b1f2cd5b29
parentd6e75ed93ed39e29a6a7e9241ea6cc6171808ae7
Fix crasher in CodeView test.

Apparently this was always broken, but previously we were more
graceful about it and we would print "unknown udt" if we couldn't
find the type index, whereas now we just segfault because we
assume it's valid.  But this exposed a real bug, which is that
we weren't looking in the right place.  So fix that, and also
fix this crash at the same time.

llvm-svn: 303397
llvm/lib/DebugInfo/CodeView/TypeDumpVisitor.cpp