From 0ef3fa6aabc80995c8a0bd829c85c89ef2d4c32d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 8 Mar 2010 19:20:38 +0000 Subject: Revert r97947. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97963 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/CloneFunction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms/Utils/CloneFunction.cpp') 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[] = { -- cgit v1.2.3-18-g5258