Verify compile unit also.
authorDevang Patel <dpatel@apple.com>
Fri, 7 May 2010 21:42:24 +0000 (21:42 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 7 May 2010 21:42:24 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103300 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DebugInfo.cpp

index 7b4935c94c947cddd02c8fdff632d26907f2f521..56bf5804935fa2a023f79a13bb5d636b8ea0f6c9 100644 (file)
@@ -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;