summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-05-07 21:42:24 +0000
committerDevang Patel <dpatel@apple.com>2010-05-07 21:42:24 +0000
commit2c4d69d7ad0f7bc1acc16285470e67b9f2d1531c (patch)
treee02ca2f2060a6ffb4ca99ec07c0a8acaedbc915d /llvm/lib/Analysis/DebugInfo.cpp
parent51c1695a0a5c8510e3b4f89fa6b04a5f83312931 (diff)
downloadbcm5719-llvm-2c4d69d7ad0f7bc1acc16285470e67b9f2d1531c.tar.gz
bcm5719-llvm-2c4d69d7ad0f7bc1acc16285470e67b9f2d1531c.zip
Verify compile unit also.
llvm-svn: 103300
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r--llvm/lib/Analysis/DebugInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp
index 7b4935c94c9..56bf5804935 100644
--- a/llvm/lib/Analysis/DebugInfo.cpp
+++ b/llvm/lib/Analysis/DebugInfo.cpp
@@ -368,6 +368,9 @@ bool DIVariable::Verify() const {
if (!getContext().Verify())
return false;
+ if (!getCompileUnit().Verify())
+ return false;
+
DIType Ty = getType();
if (!Ty.Verify())
return false;
OpenPOWER on IntegriCloud