summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-06-26 22:44:57 +0000
committerEric Christopher <echristo@gmail.com>2013-06-26 22:44:57 +0000
commit8479989ebe30f8fb9e14fbd5622fe0fd51988ff6 (patch)
treed58e3bf5f9df7599e4866263f580679dba8367d4 /lib/Transforms/Utils/Local.cpp
parentb0a9ffaeb0cb3802da3611b95d3ea7f49f03f787 (diff)
downloadllvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.gz
llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.bz2
llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.xz
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
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 1878a54c9a..12e5b3e9d2 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -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