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 | 0793f4501c0df0a0595d5f68b8c821eedc61d6ea (patch) | |
tree | 7af6b56490504b302cc8ad0983e6e548021ad8b4 /llvm/lib/IR/Attributes.cpp | |
parent | 33accdf602a9191caa0a42c4400241def6613af5 (diff) | |
download | bcm5719-llvm-0793f4501c0df0a0595d5f68b8c821eedc61d6ea.tar.gz bcm5719-llvm-0793f4501c0df0a0595d5f68b8c821eedc61d6ea.zip |
Make the type signature more strict.
llvm-svn: 171434
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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; } |