More bulletproofing of DebugInfoDesc verify.

llvm-svn: 27203
This commit is contained in:
Jim Laskey 2006-03-28 01:30:18 +00:00
parent 7c9740a9ed
commit 8374e9c4eb
1 changed files with 1 additions and 1 deletions

View File

@ -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.