summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-14 07:35:59 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-14 07:35:59 +0000
commit722b26c0f2302bf64207e9f366b8af61e50bbdc9 (patch)
treefedb0e631a962eea4a45d46d77426da2c834591f /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent5c407ed3abe87ed91d7c4a019df15c79084ac845 (diff)
downloadbcm5719-llvm-722b26c0f2302bf64207e9f366b8af61e50bbdc9.tar.gz
bcm5719-llvm-722b26c0f2302bf64207e9f366b8af61e50bbdc9.zip
Remove the bitwise assignment OR operator from the Attributes class. Replace it with the equivalent from the builder class.
llvm-svn: 165895
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index e2932501f31..831f94afb46 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -98,10 +98,12 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
Anew->addAttr( OldFunc->getAttributes()
.getParamAttributes(I->getArgNo() + 1));
NewFunc->setAttributes(NewFunc->getAttributes()
- .addAttr(0, OldFunc->getAttributes()
+ .addAttr(NewFunc->getContext(), 0,
+ OldFunc->getAttributes()
.getRetAttributes()));
NewFunc->setAttributes(NewFunc->getAttributes()
- .addAttr(~0, OldFunc->getAttributes()
+ .addAttr(NewFunc->getContext(), ~0,
+ OldFunc->getAttributes()
.getFnAttributes()));
}
OpenPOWER on IntegriCloud