[llvm-commits] [llvm] r116733 - /llvm/trunk/lib/Transforms/Utils/LowerInvoke.cpp
Devang Patel
dpatel at apple.com
Mon Oct 18 11:53:44 PDT 2010
Author: dpatel
Date: Mon Oct 18 13:53:44 2010
New Revision: 116733
URL: http://llvm.org/viewvc/llvm-project?rev=116733&view=rev
Log:
Transfer debug loc to lowered call.
Patch by Alexander Herz!
Modified:
llvm/trunk/lib/Transforms/Utils/LowerInvoke.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LowerInvoke.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LowerInvoke.cpp?rev=116733&r1=116732&r2=116733&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LowerInvoke.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LowerInvoke.cpp Mon Oct 18 13:53:44 2010
@@ -187,6 +187,7 @@
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 @@
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.
More information about the llvm-commits
mailing list