summaryrefslogtreecommitdiffstats
path: root/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
commit62077af40e4122f20b47ef3e892d91bfbce4dc95 (patch)
tree994ce9c5db948a3008ed3322786e2d5c8def440c /lib/Analysis/DebugInfo.cpp
parent0a406ae0d940d92c51ee145b48ff7a483a366849 (diff)
downloadexternal_llvm-62077af40e4122f20b47ef3e892d91bfbce4dc95.zip
external_llvm-62077af40e4122f20b47ef3e892d91bfbce4dc95.tar.gz
external_llvm-62077af40e4122f20b47ef3e892d91bfbce4dc95.tar.bz2
Verify compile unit also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r--lib/Analysis/DebugInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 7b4935c..56bf580 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/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;