diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ExtractFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp index 69d0926fb62..a871c4d7f2b 100644 --- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp +++ b/llvm/lib/Transforms/IPO/ExtractFunction.cpp @@ -70,6 +70,7 @@ namespace { Function *New = new Function(I->getFunctionType(), GlobalValue::ExternalLinkage, I->getName()); + New->setCallingConv(I->getCallingConv()); I->setName(""); // Remove Old name // If it's not the named function, delete the body of the function |