[IR/Verifier] Fix (yet another) crash.
authorDavide Italiano <davide@freebsd.org>
Fri, 8 Apr 2016 00:01:32 +0000 (00:01 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 8 Apr 2016 00:01:32 +0000 (00:01 +0000)
commit08f8f21b91e4a805ea71f48c1b04795a14da0f75
tree5db2769995aa8934d92dde7be79de99ddf89c871
parent25c36fd61bbbc85632273d91ecb473fd4c472d0f
[IR/Verifier] Fix (yet another) crash.

We need to check that if we reference a retainedType from
DICompileUnit we're actually referencing a DICompositeType.

llvm-svn: 265752
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/dbg-invalid-retaintypes.ll [new file with mode: 0644]