summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-06-02 22:46:58 +0000
committerDevang Patel <dpatel@apple.com>2011-06-02 22:46:58 +0000
commit5127c5d9b23c4d92ba16cc8d552842e95bcf8304 (patch)
tree3bd9833bbb2d9e1171b226790c5c52520c7311fa /llvm/lib/Transforms
parent02da72f60ecbc0e2c4150784ebbe57007bf31280 (diff)
downloadbcm5719-llvm-5127c5d9b23c4d92ba16cc8d552842e95bcf8304.tar.gz
bcm5719-llvm-5127c5d9b23c4d92ba16cc8d552842e95bcf8304.zip
Preserve line number information while converting Invoke into a Call.
llvm-svn: 132505
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index eccafea3aa8..7e9cc807b21 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -96,6 +96,7 @@ static void ChangeToCall(InvokeInst *II) {
NewCall->takeName(II);
NewCall->setCallingConv(II->getCallingConv());
NewCall->setAttributes(II->getAttributes());
+ NewCall->setDebugLoc(II->getDebugLoc());
II->replaceAllUsesWith(NewCall);
// Follow the call by a branch to the normal destination.
OpenPOWER on IntegriCloud