diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-25 22:16:06 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-25 22:16:06 +0000 |
commit | 520e64c0c2140c00ddfa00368eca7fdb8723cec0 (patch) | |
tree | e92acc12813fbda8a1c2420718d592a91acb2f82 /llvm/lib/Transforms/IPO/ExtractFunction.cpp | |
parent | bea11173f5e8bb8f48495621a8437db8db94fad8 (diff) | |
download | bcm5719-llvm-520e64c0c2140c00ddfa00368eca7fdb8723cec0.tar.gz bcm5719-llvm-520e64c0c2140c00ddfa00368eca7fdb8723cec0.zip |
Fixing several transforms which would drop the collector attribute
when copying functions.
llvm-svn: 45356
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(); |