summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/PruneEH.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-05-10 00:03:11 +0000
committerDevang Patel <dpatel@apple.com>2011-05-10 00:03:11 +0000
commit65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2 (patch)
tree21ebe85221bfcdd9828edd02b9aa85ef9640e513 /lib/Transforms/IPO/PruneEH.cpp
parenta3f486762f943136da84bfe590e7153fd434c7ad (diff)
downloadllvm-65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2.tar.gz
llvm-65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2.tar.bz2
llvm-65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2.tar.xz
Preserve line number information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r--lib/Transforms/IPO/PruneEH.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp
index 9470180c56..496b96aceb 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