From 4d5e5e5d61b404cb3bac9745e0dbfca6a1b8af2e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 29 Dec 2012 12:10:46 +0000 Subject: 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 --- lib/VMCore/Attributes.cpp | 10 +++++----- 1 file 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); } //===----------------------------------------------------------------------===// -- cgit v1.1