summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-10-18 18:53:44 +0000
committerDevang Patel <dpatel@apple.com>2010-10-18 18:53:44 +0000
commit218f3206fa3d1b275012220eab7b40248b789908 (patch)
tree055999336878e5d1dd345f311eb9e9b4c37b4747 /llvm/lib/Transforms
parent52dacc0d7f392c7066d3bac0f6ca83288e1227eb (diff)
downloadbcm5719-llvm-218f3206fa3d1b275012220eab7b40248b789908.tar.gz
bcm5719-llvm-218f3206fa3d1b275012220eab7b40248b789908.zip
Transfer debug loc to lowered call.
Patch by Alexander Herz! llvm-svn: 116733
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/LowerInvoke.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp
index e8a11e3d0cc..77d7f153d7e 100644
--- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp
+++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp
@@ -187,6 +187,7 @@ bool LowerInvoke::insertCheapEHSupport(Function &F) {
NewCall->takeName(II);
NewCall->setCallingConv(II->getCallingConv());
NewCall->setAttributes(II->getAttributes());
+ NewCall->setDebugLoc(II->getDebugLoc());
II->replaceAllUsesWith(NewCall);
// Insert an unconditional branch to the normal destination.
@@ -267,6 +268,7 @@ void LowerInvoke::rewriteExpensiveInvoke(InvokeInst *II, unsigned InvokeNo,
NewCall->takeName(II);
NewCall->setCallingConv(II->getCallingConv());
NewCall->setAttributes(II->getAttributes());
+ NewCall->setDebugLoc(II->getDebugLoc());
II->replaceAllUsesWith(NewCall);
// Replace the invoke with an uncond branch.
OpenPOWER on IntegriCloud