diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-10 10:12:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-10 10:12:06 +0000 |
commit | ff842945670930d9caa542fe9e34c2e22c893ad9 (patch) | |
tree | 9308487668a45ec865a2849b7c297e499dab814f /llvm/lib | |
parent | 16b64cba6278b87ecb9ec1c6e8364cf05956cc88 (diff) | |
download | bcm5719-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.cpp | 2 |
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) + |