summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-31 00:53:21 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-31 00:53:21 +0000
commitb8b16b567c123339dd4fea01170a86daf215a229 (patch)
treef952687d7558c885fafc6e3daa6722e494ad9d51 /llvm/lib/IR/Verifier.cpp
parent258c867c0b4fb37b493cdfdba74572f5a0e319c3 (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud