summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2016-01-14 06:21:42 +0000
committerJoseph Tremoulet <jotrem@microsoft.com>2016-01-14 06:21:42 +0000
commitbba70e44240bb808ddbac87ad5ed633548f1e7cc (patch)
treee64ad735995663931e131c4ef6ed2c20d221a0a3 /llvm/lib/Transforms
parentd5d8887d28a8a59123d01eb9e7ed0da1a6bf5d37 (diff)
downloadbcm5719-llvm-bba70e44240bb808ddbac87ad5ed633548f1e7cc.tar.gz
bcm5719-llvm-bba70e44240bb808ddbac87ad5ed633548f1e7cc.zip
[OperandBundles] Copy DebugLoc with calls/invokes
Summary: The overloads of CallInst::Create and InvokeInst::Create that are used to adjust operand bundles purport to create a new instruction "identical in every way except [for] the operand bundles", so copy the DebugLoc along with everything else. Reviewers: sanjoy, majnemer Subscribers: majnemer, dblaikie, llvm-commits Differential Revision: http://reviews.llvm.org/D16157 llvm-svn: 257745
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 2d38f1cea57..185bc6da31e 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1447,7 +1447,6 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
NewInst = CallInst::Create(cast<CallInst>(I), OpBundles, I);
else
NewInst = InvokeInst::Create(cast<InvokeInst>(I), OpBundles, I);
- NewInst->setDebugLoc(I->getDebugLoc());
NewInst->takeName(I);
I->replaceAllUsesWith(NewInst);
I->eraseFromParent();
OpenPOWER on IntegriCloud