diff options
author | Devang Patel <dpatel@apple.com> | 2010-05-07 21:42:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-05-07 21:42:24 +0000 |
commit | 62077af40e4122f20b47ef3e892d91bfbce4dc95 (patch) | |
tree | 994ce9c5db948a3008ed3322786e2d5c8def440c /lib/Analysis/DebugInfo.cpp | |
parent | 0a406ae0d940d92c51ee145b48ff7a483a366849 (diff) | |
download | external_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.cpp | 3 |
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; |