diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-08 19:20:38 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-08 19:20:38 +0000 |
commit | 0ef3fa6aabc80995c8a0bd829c85c89ef2d4c32d (patch) | |
tree | ac2bdb8ae1dae16aa3bf10c28e20c5a0ff80a1f9 /lib/Transforms/Utils/CloneFunction.cpp | |
parent | dd6fbd11368b9d9ae82f8620a4aa7af9b8baf47c (diff) |
Revert r97947.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | lib/Transforms/Utils/CloneFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 62fc2ec10b..c80827d498 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[] = { |