diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 01:51:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 01:51:27 +0000 |
commit | 37f7e18705f6ce4e41b343ec929f92a93cc65e21 (patch) | |
tree | f755bd034caa4c6face9286b403cb82ecb06bc5f /llvm/lib | |
parent | de5cc7d3d87eb654f11af27387279a3daf9d7382 (diff) | |
download | bcm5719-llvm-37f7e18705f6ce4e41b343ec929f92a93cc65e21.tar.gz bcm5719-llvm-37f7e18705f6ce4e41b343ec929f92a93cc65e21.zip |
Make the AttrBuilder creation method of Attribute private so that people won't use it.
llvm-svn: 174023
Diffstat (limited to 'llvm/lib')
-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. |