[llvm-commits] [llvm] r132505 - /llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp
Devang Patel
dpatel at apple.com
Thu Jun 2 15:46:58 PDT 2011
Author: dpatel
Date: Thu Jun 2 17:46:58 2011
New Revision: 132505
URL: http://llvm.org/viewvc/llvm-project?rev=132505&view=rev
Log:
Preserve line number information while converting Invoke into a Call.
Modified:
llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp?rev=132505&r1=132504&r2=132505&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp Thu Jun 2 17:46:58 2011
@@ -96,6 +96,7 @@
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.
More information about the llvm-commits
mailing list