diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-10 00:03:11 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-10 00:03:11 +0000 |
commit | 65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2 (patch) | |
tree | 21ebe85221bfcdd9828edd02b9aa85ef9640e513 /lib/Transforms | |
parent | a3f486762f943136da84bfe590e7153fd434c7ad (diff) | |
download | external_llvm-65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2.zip external_llvm-65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2.tar.gz external_llvm-65a2f77b0e155f7f1b0a31b0bc9f683b441bc8e2.tar.bz2 |
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')
-rw-r--r-- | lib/Transforms/IPO/PruneEH.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 9470180..496b96a 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 |