From 62077af40e4122f20b47ef3e892d91bfbce4dc95 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 7 May 2010 21:42:24 +0000 Subject: [PATCH] Verify compile unit also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103300 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DebugInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.34.1