From 3fd06f760b196b76ac77d4c34bad83d78acdc5dc Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 10 May 2011 00:03:11 +0000 Subject: [PATCH] Preserve line number information. llvm-svn: 131112 --- llvm/lib/Transforms/IPO/PruneEH.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 9470180c5657..496b96aceb34 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/lib/Transforms/IPO/PruneEH.cpp @@ -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