1
0
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:
Jim Laskey 2006-03-28 01:30:18 +00:00
parent 723cb246c9
commit 702240530d

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.