mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
More bulletproofing of DebugInfoDesc verify.
llvm-svn: 27203
This commit is contained in:
parent
723cb246c9
commit
702240530d
@ -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
Block a user