summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-30 13:50:49 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-30 13:50:49 +0000
commit749a43d874f06127fa163efff456693e29124aeb (patch)
tree250a92158e98d233cdf18f64c1bb176df12ce84a /llvm/lib/AsmParser
parent74dba875e2f2d60919f0151022a995ef4883efb5 (diff)
downloadbcm5719-llvm-749a43d874f06127fa163efff456693e29124aeb.tar.gz
bcm5719-llvm-749a43d874f06127fa163efff456693e29124aeb.zip
Use the predicate methods off of AttributeSet instead of Attribute.
llvm-svn: 171257
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index c45ad0a083e..ffa0ace596a 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2834,8 +2834,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
AttributeSet PAL = AttributeSet::get(Context, Attrs);
- if (PAL.getParamAttributes(1).hasAttribute(Attribute::StructRet) &&
- !RetType->isVoidTy())
+ if (PAL.hasAttribute(1, Attribute::StructRet) && !RetType->isVoidTy())
return Error(RetTypeLoc, "functions with 'sret' argument must return void");
FunctionType *FT =
OpenPOWER on IntegriCloud