mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +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
|
/// Verify - Return true if the GlobalVariable appears to be a valid
|
||||||
/// serialization of a DebugInfoDesc.
|
/// serialization of a DebugInfoDesc.
|
||||||
bool DIVerifier::Verify(Value *V) {
|
bool DIVerifier::Verify(Value *V) {
|
||||||
return Verify(getGlobalVariable(V));
|
return !V || Verify(getGlobalVariable(V));
|
||||||
}
|
}
|
||||||
bool DIVerifier::Verify(GlobalVariable *GV) {
|
bool DIVerifier::Verify(GlobalVariable *GV) {
|
||||||
// NULLs are valid.
|
// NULLs are valid.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user