aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
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
commitbe149874dbf1f1a139afb106da91d617025964eb (patch)
treeac2bdb8ae1dae16aa3bf10c28e20c5a0ff80a1f9 /lib/Transforms
parent744c5a8c6d2ea7a7f1738a79888ccfc3c62b6646 (diff)
downloadexternal_llvm-be149874dbf1f1a139afb106da91d617025964eb.zip
external_llvm-be149874dbf1f1a139afb106da91d617025964eb.tar.gz
external_llvm-be149874dbf1f1a139afb106da91d617025964eb.tar.bz2
Revert r97947.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Utils/CloneFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp
index 62fc2ec..c80827d 100644
--- a/lib/Transforms/Utils/CloneFunction.cpp
+++ b/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[] = {