[llvm-commits] [llvm] r131112 - /llvm/trunk/lib/Transforms/IPO/PruneEH.cpp

Devang Patel dpatel at apple.com
Mon May 9 17:03:11 PDT 2011


Author: dpatel
Date: Mon May  9 19:03:11 2011
New Revision: 131112

URL: http://llvm.org/viewvc/llvm-project?rev=131112&view=rev
Log:
Preserve line number information.

Modified:
    llvm/trunk/lib/Transforms/IPO/PruneEH.cpp

Modified: llvm/trunk/lib/Transforms/IPO/PruneEH.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PruneEH.cpp?rev=131112&r1=131111&r2=131112&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PruneEH.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PruneEH.cpp Mon May  9 19:03:11 2011
@@ -180,6 +180,7 @@
         Call->takeName(II);
         Call->setCallingConv(II->getCallingConv());
         Call->setAttributes(II->getAttributes());
+        Call->setDebugLoc(II->getDebugLoc());
 
         // Anything that used the value produced by the invoke instruction
         // now uses the value produced by the call instruction.  Note that we





More information about the llvm-commits mailing list