summaryrefslogtreecommitdiff
path: root/lib/VMCore/Verifier.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-19 23:54:18 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-19 23:54:18 +0000
commite603fe46649aee6f6aeca1668f0b617818af1e1d (patch)
tree179fb8d6b426bf5f249d798f61e1085c1697a7af /lib/VMCore/Verifier.cpp
parentf5958e9dea9daf6843f44686bc9d8b19155465e4 (diff)
downloadllvm-e603fe46649aee6f6aeca1668f0b617818af1e1d.tar.gz
llvm-e603fe46649aee6f6aeca1668f0b617818af1e1d.tar.bz2
llvm-e603fe46649aee6f6aeca1668f0b617818af1e1d.tar.xz
Convert some attribute existence queries over to use the predicate methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r--lib/VMCore/Verifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index c932d9e539..83c900add5 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -585,12 +585,12 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT,
VerifyParameterAttrs(Attr.Attrs, Ty, Attr.Index == 0, V);
- if (Attr.Attrs & Attribute::Nest) {
+ if (Attr.Attrs.hasNestAttr()) {
Assert1(!SawNest, "More than one parameter has attribute nest!", V);
SawNest = true;
}
- if (Attr.Attrs & Attribute::StructRet)
+ if (Attr.Attrs.hasStructRetAttr())
Assert1(Attr.Index == 1, "Attribute sret not on first parameter!", V);
}