summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-09 01:04:34 +0000
committerChris Lattner <sabre@nondot.org>2005-05-09 01:04:34 +0000
commitc154cef9a1e7db1afd42e4b227571debe7a986f5 (patch)
treed3735422ddaa47198bee0763dfc0420cc609cd20 /lib/Transforms/Utils/InlineFunction.cpp
parent42e3c81c5f23c42ba2415a8f797d430dad387734 (diff)
downloadllvm-c154cef9a1e7db1afd42e4b227571debe7a986f5.tar.gz
llvm-c154cef9a1e7db1afd42e4b227571debe7a986f5.tar.bz2
llvm-c154cef9a1e7db1afd42e4b227571debe7a986f5.tar.xz
wrap long lines, preserve calling conventions when cloning functions and
turning calls into invokes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 5ca9577c8c..262b2d6946 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -153,6 +153,7 @@ bool llvm::InlineFunction(CallSite CS) {
new InvokeInst(CI->getCalledValue(), Split, InvokeDest,
std::vector<Value*>(CI->op_begin()+1, CI->op_end()),
CI->getName(), BB->getTerminator());
+ II->setCallingConv(CI->getCallingConv());
// Make sure that anything using the call now uses the invoke!
CI->replaceAllUsesWith(II);