mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Revert "Debug Info: clean up usage of Verify." as it's breaking bots.
This reverts commit r185020 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -854,7 +854,7 @@ static bool LdStHasDebugValue(DIVariable &DIVar, Instruction *I) {
|
||||
bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
||||
StoreInst *SI, DIBuilder &Builder) {
|
||||
DIVariable DIVar(DDI->getVariable());
|
||||
if (!DIVar.isVariable())
|
||||
if (!DIVar.Verify())
|
||||
return false;
|
||||
|
||||
if (LdStHasDebugValue(DIVar, SI))
|
||||
@ -888,7 +888,7 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
||||
bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
||||
LoadInst *LI, DIBuilder &Builder) {
|
||||
DIVariable DIVar(DDI->getVariable());
|
||||
if (!DIVar.isVariable())
|
||||
if (!DIVar.Verify())
|
||||
return false;
|
||||
|
||||
if (LdStHasDebugValue(DIVar, LI))
|
||||
@ -961,7 +961,7 @@ bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
|
||||
if (!DDI)
|
||||
return false;
|
||||
DIVariable DIVar(DDI->getVariable());
|
||||
if (!DIVar.isVariable())
|
||||
if (!DIVar.Verify())
|
||||
return false;
|
||||
|
||||
// Create a copy of the original DIDescriptor for user variable, appending
|
||||
|
Reference in New Issue
Block a user