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 | 87de71cb9f12d874e88d4f314ab245985c1b36bc (patch) | |
tree | 8e0a1b7afcc9f2ad4922cb6d65cad08c789a60dc /lib/IR/Verifier.cpp | |
parent | b7cfac32f32f17e64a5addfdb833702160650f14 (diff) | |
download | external_llvm-87de71cb9f12d874e88d4f314ab245985c1b36bc.zip external_llvm-87de71cb9f12d874e88d4f314ab245985c1b36bc.tar.gz external_llvm-87de71cb9f12d874e88d4f314ab245985c1b36bc.tar.bz2 |
Add 'empty' query methods to the builder and use them in the verifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Verifier.cpp')
-rw-r--r-- | lib/IR/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index babc295..31312dc 100644 --- a/lib/IR/Verifier.cpp +++ b/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) + |