diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-14 06:39:53 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-14 06:39:53 +0000 |
commit | 5886b7bfc82385dfd35b7602304c86075e1d72e6 (patch) | |
tree | b818eb58d9335787f839a6e1757f5350185bb157 /lib/Transforms/IPO/DeadArgumentElimination.cpp | |
parent | a19a53065fcaa6fafce902efde38fcae7b0bdea4 (diff) | |
download | llvm-5886b7bfc82385dfd35b7602304c86075e1d72e6.tar.gz llvm-5886b7bfc82385dfd35b7602304c86075e1d72e6.tar.bz2 llvm-5886b7bfc82385dfd35b7602304c86075e1d72e6.tar.xz |
Remove the bitwise NOT operator from the Attributes class. Replace it with the equivalent from the builder class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/DeadArgumentElimination.cpp')
-rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index b107669b17..6b52387504 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -762,7 +762,9 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) { // here. Currently, this should not be possible, but special handling might be // required when new return value attributes are added. if (NRetTy->isVoidTy()) - RAttrs &= ~Attributes::typeIncompatible(NRetTy); + RAttrs = + Attributes::get(Attributes::Builder(RAttrs). + removeAttributes(Attributes::typeIncompatible(NRetTy))); else assert((RAttrs & Attributes::typeIncompatible(NRetTy)) == 0 && "Return attributes no longer compatible?"); @@ -831,7 +833,9 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) { Attributes RAttrs = CallPAL.getRetAttributes(); Attributes FnAttrs = CallPAL.getFnAttributes(); // Adjust in case the function was changed to return void. - RAttrs &= ~Attributes::typeIncompatible(NF->getReturnType()); + RAttrs = + Attributes::get(Attributes::Builder(RAttrs). + removeAttributes(Attributes::typeIncompatible(NF->getReturnType()))); if (RAttrs) AttributesVec.push_back(AttributeWithIndex::get(0, RAttrs)); |