forked from OSchip/llvm-project
More bulletproofing of DebugInfoDesc verify.
llvm-svn: 27203
This commit is contained in:
parent
7c9740a9ed
commit
8374e9c4eb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue