summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-08 19:20:38 +0000
committerDevang Patel <dpatel@apple.com>2010-03-08 19:20:38 +0000
commitbc97f6b7578e70ec48533f8de15d64479e2ad829 (patch)
treee447f334d2c42aef7c8b1f10ca4f72698d3a88c8 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parentadccbca23f52b36678b35839dfee5ed549b92602 (diff)
downloadbcm5719-llvm-bc97f6b7578e70ec48533f8de15d64479e2ad829.tar.gz
bcm5719-llvm-bc97f6b7578e70ec48533f8de15d64479e2ad829.zip
Revert r97947.
llvm-svn: 97963
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 62fc2ec10b1..c80827d4983 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -336,14 +336,14 @@ ConstantFoldMappedInstruction(const Instruction *I) {
static MDNode *UpdateInlinedAtInfo(MDNode *InsnMD, MDNode *TheCallMD) {
DILocation ILoc(InsnMD);
- if (!ILoc.Verify()) return InsnMD;
+ if (ILoc.isNull()) return InsnMD;
DILocation CallLoc(TheCallMD);
- if (!CallLoc.Verify()) return InsnMD;
+ if (CallLoc.isNull()) return InsnMD;
DILocation OrigLocation = ILoc.getOrigLocation();
MDNode *NewLoc = TheCallMD;
- if (OrigLocation.Verify())
+ if (!OrigLocation.isNull())
NewLoc = UpdateInlinedAtInfo(OrigLocation.getNode(), TheCallMD);
Value *MDVs[] = {
OpenPOWER on IntegriCloud