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 | 62bd242fedfc0550ae5c50b24d42b8e0cf390893 (patch) | |
| tree | 994ce9c5db948a3008ed3322786e2d5c8def440c /lib/Analysis | |
| parent | 6a11bccbdc8ea01d75400341046cc1b8b2f482b1 (diff) | |
| download | external_llvm-62bd242fedfc0550ae5c50b24d42b8e0cf390893.zip external_llvm-62bd242fedfc0550ae5c50b24d42b8e0cf390893.tar.gz external_llvm-62bd242fedfc0550ae5c50b24d42b8e0cf390893.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')
| -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; |
