From: Jim Laskey Date: Tue, 28 Mar 2006 01:30:18 +0000 (+0000) Subject: More bulletproofing of DebugInfoDesc verify. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aaa80ebd10c62a903537d386b0d3738b0595491f;p=oota-llvm.git More bulletproofing of DebugInfoDesc verify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27203 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp index eb85f27a475..9876e652a83 100644 --- a/lib/CodeGen/MachineDebugInfo.cpp +++ b/lib/CodeGen/MachineDebugInfo.cpp @@ -1323,7 +1323,7 @@ GlobalVariable *DISerializer::Serialize(DebugInfoDesc *DD) { /// Verify - Return true if the GlobalVariable appears to be a valid /// serialization of a DebugInfoDesc. bool DIVerifier::Verify(Value *V) { - return Verify(getGlobalVariable(V)); + return !V || Verify(getGlobalVariable(V)); } bool DIVerifier::Verify(GlobalVariable *GV) { // NULLs are valid.