diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ExtractFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp index e5b2d41d528..013fefef98f 100644 --- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp +++ b/llvm/lib/Transforms/IPO/ExtractFunction.cpp @@ -96,6 +96,8 @@ namespace { GlobalValue::ExternalLinkage); New->setCallingConv(I->getCallingConv()); New->setParamAttrs(I->getParamAttrs()); + if (I->hasCollector()) + New->setCollector(I->getCollector()); // If it's not the named function, delete the body of the function I->dropAllReferences(); |