From 0793f4501c0df0a0595d5f68b8c821eedc61d6ea Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 3 Jan 2013 00:46:43 +0000 Subject: Make the type signature more strict. llvm-svn: 171434 --- llvm/lib/IR/Attributes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/IR/Attributes.cpp') diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 2e0b084ab59..b847d768f3a 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -359,7 +359,7 @@ uint64_t AttributeImpl::getBitMask() const { return cast(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; } -- cgit v1.2.3