diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 00:53:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 00:53:21 +0000 |
commit | b8b16b567c123339dd4fea01170a86daf215a229 (patch) | |
tree | f952687d7558c885fafc6e3daa6722e494ad9d51 /llvm/lib/IR/Verifier.cpp | |
parent | 258c867c0b4fb37b493cdfdba74572f5a0e319c3 (diff) | |
download | bcm5719-llvm-b8b16b567c123339dd4fea01170a86daf215a229.tar.gz bcm5719-llvm-b8b16b567c123339dd4fea01170a86daf215a229.zip |
Remove the AttrBuilder version of the Attribute::get function.
The AttrBuilder is there to build up multiple attributes. The Attribute class
represents only one attribute at a time. So remove this unnecessary builder
creator method.
llvm-svn: 174010
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 5da74481e4f..babc295126e 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -745,7 +745,9 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT, AttrBuilder NotFn(Attrs, AttributeSet::FunctionIndex); NotFn.removeFunctionOnlyAttrs(); Assert1(!NotFn.hasAttributes(), "Attribute '" + - Attribute::get(V->getContext(), NotFn).getAsString() + + AttributeSet::get(V->getContext(), + AttributeSet::FunctionIndex, + NotFn).getAsString(AttributeSet::FunctionIndex) + "' do not apply to the function!", V); // Check for mutually incompatible attributes. |