Use the accessor method instead of the raw ivar to get the bits.
authorBill Wendling <isanbard@gmail.com>
Sat, 29 Dec 2012 12:10:46 +0000 (12:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 29 Dec 2012 12:10:46 +0000 (12:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171220 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Attributes.cpp

index b2744c980d9df38dd957b761cf15d33b842ca2e8..3a593574cc79825e28783ac757e49d9e047b5cbd 100644 (file)
@@ -335,23 +335,23 @@ uint64_t AttributeImpl::getAttrMask(uint64_t Val) {
 }
 
 bool AttributeImpl::hasAttribute(uint64_t A) const {
-  return (Bits & getAttrMask(A)) != 0;
+  return (Raw() & getAttrMask(A)) != 0;
 }
 
 bool AttributeImpl::hasAttributes() const {
-  return Bits != 0;
+  return Raw() != 0;
 }
 
 bool AttributeImpl::hasAttributes(const Attribute &A) const {
-  return Bits & A.Raw();        // FIXME: Raw() won't work here in the future.
+  return Raw() & A.Raw();       // FIXME: Raw() won't work here in the future.
 }
 
 uint64_t AttributeImpl::getAlignment() const {
-  return Bits & getAttrMask(Attribute::Alignment);
+  return Raw() & getAttrMask(Attribute::Alignment);
 }
 
 uint64_t AttributeImpl::getStackAlignment() const {
-  return Bits & getAttrMask(Attribute::StackAlignment);
+  return Raw() & getAttrMask(Attribute::StackAlignment);
 }
 
 //===----------------------------------------------------------------------===//