From: Devang Patel Date: Tue, 10 May 2011 00:03:11 +0000 (+0000) Subject: Preserve line number information. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2;p=oota-llvm.git Preserve line number information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131112 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 9470180c565..496b96aceb3 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/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