From: Devang Patel Date: Fri, 7 May 2010 21:42:24 +0000 (+0000) Subject: Verify compile unit also. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=62077af40e4122f20b47ef3e892d91bfbce4dc95;p=oota-llvm.git Verify compile unit also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103300 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 7b4935c94c9..56bf5804935 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;