Preserve line number information.
authorDevang Patel <dpatel@apple.com>
Tue, 10 May 2011 00:03:11 +0000 (00:03 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 10 May 2011 00:03:11 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131112 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/PruneEH.cpp

index 9470180c5657df1e8aa66e4bbfdefe36769c5ed8..496b96aceb34245f831b6c6ddd7fa7ea437bf9c6 100644 (file)
@@ -180,6 +180,7 @@ bool PruneEH::SimplifyFunction(Function *F) {
         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