diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-03 00:46:43 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-03 00:46:43 +0000 |
commit | 47990e974355dd58d1f320f252e1a7ed3a79e034 (patch) | |
tree | 80ff0b277cfc9e54e3978e5e191b691590872a5f /lib/IR/Attributes.cpp | |
parent | 189ef5f2e0a0d1c87691f81565b348136fb5c32d (diff) |
Make the type signature more strict.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Attributes.cpp')
-rw-r--r-- | lib/IR/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 2e0b084ab5..b847d768f3 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -359,7 +359,7 @@ uint64_t AttributeImpl::getBitMask() const { return cast<ConstantInt>(Data)->getZExtValue(); } -uint64_t AttributeImpl::getAttrMask(uint64_t Val) { +uint64_t AttributeImpl::getAttrMask(Attribute::AttrKind Val) { switch (Val) { case Attribute::None: return 0; case Attribute::ZExt: return 1 << 0; @@ -395,7 +395,7 @@ uint64_t AttributeImpl::getAttrMask(uint64_t Val) { llvm_unreachable("Unsupported attribute type"); } -bool AttributeImpl::hasAttribute(uint64_t A) const { +bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { return (getBitMask() & getAttrMask(A)) != 0; } |