diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-29 12:10:46 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-29 12:10:46 +0000 |
commit | 4d5e5e5d61b404cb3bac9745e0dbfca6a1b8af2e (patch) | |
tree | 2abbb90c7b0cb3333987a980eac5d25ea1d837f2 | |
parent | a84e7508ebcfe2eacdf8153bd83fa63eebe75aea (diff) | |
download | external_llvm-4d5e5e5d61b404cb3bac9745e0dbfca6a1b8af2e.zip external_llvm-4d5e5e5d61b404cb3bac9745e0dbfca6a1b8af2e.tar.gz external_llvm-4d5e5e5d61b404cb3bac9745e0dbfca6a1b8af2e.tar.bz2 |
Use the accessor method instead of the raw ivar to get the bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171220 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Attributes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index b2744c9..3a59357 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -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); } //===----------------------------------------------------------------------===// |