OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76dd0de
)
Preserve line number information while converting Invoke into a Call.
author
Devang Patel
<dpatel@apple.com>
Thu, 2 Jun 2011 22:46:58 +0000
(22:46 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 2 Jun 2011 22:46:58 +0000
(22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132505
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/SimplifyCFGPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/SimplifyCFGPass.cpp
b/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index
eccafea
..
7e9cc80
100644
(file)
--- a/
lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/
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.