mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
More bulletproofing of DebugInfoDesc verify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b026e70462
commit
aaa80ebd10
@ -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