summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-10 10:12:06 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-10 10:12:06 +0000
commitff842945670930d9caa542fe9e34c2e22c893ad9 (patch)
tree9308487668a45ec865a2849b7c297e499dab814f /llvm/lib
parent16b64cba6278b87ecb9ec1c6e8364cf05956cc88 (diff)
downloadbcm5719-llvm-ff842945670930d9caa542fe9e34c2e22c893ad9.tar.gz
bcm5719-llvm-ff842945670930d9caa542fe9e34c2e22c893ad9.zip
Add 'empty' query methods to the builder and use them in the verifier.
llvm-svn: 174832
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index babc295126e..31312dc1c41 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -744,7 +744,7 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT,
AttrBuilder NotFn(Attrs, AttributeSet::FunctionIndex);
NotFn.removeFunctionOnlyAttrs();
- Assert1(!NotFn.hasAttributes(), "Attribute '" +
+ Assert1(NotFn.empty(), "Attributes '" +
AttributeSet::get(V->getContext(),
AttributeSet::FunctionIndex,
NotFn).getAsString(AttributeSet::FunctionIndex) +
OpenPOWER on IntegriCloud