diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-14 07:35:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-14 07:35:59 +0000 |
commit | 722b26c0f2302bf64207e9f366b8af61e50bbdc9 (patch) | |
tree | fedb0e631a962eea4a45d46d77426da2c834591f /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | 5c407ed3abe87ed91d7c4a019df15c79084ac845 (diff) | |
download | bcm5719-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.cpp | 6 |
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())); } |