diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-09 01:04:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-09 01:04:34 +0000 |
commit | c154cef9a1e7db1afd42e4b227571debe7a986f5 (patch) | |
tree | d3735422ddaa47198bee0763dfc0420cc609cd20 /lib/Transforms/Utils/InlineFunction.cpp | |
parent | 42e3c81c5f23c42ba2415a8f797d430dad387734 (diff) |
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.cpp | 1 |
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); |