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
This commit is contained in:
Bill Wendling
2012-10-14 06:39:53 +00:00
parent a19a53065f
commit 5886b7bfc8
7 changed files with 35 additions and 22 deletions
+2 -2
View File
@@ -338,7 +338,7 @@ void CallInst::addAttribute(unsigned i, Attributes attr) {
void CallInst::removeAttribute(unsigned i, Attributes attr) {
AttrListPtr PAL = getAttributes();
PAL = PAL.removeAttr(i, attr);
PAL = PAL.removeAttr(getContext(), i, attr);
setAttributes(PAL);
}
@@ -594,7 +594,7 @@ void InvokeInst::addAttribute(unsigned i, Attributes attr) {
void InvokeInst::removeAttribute(unsigned i, Attributes attr) {
AttrListPtr PAL = getAttributes();
PAL = PAL.removeAttr(i, attr);
PAL = PAL.removeAttr(getContext(), i, attr);
setAttributes(PAL);
}