summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-09 00:01:21 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-09 00:01:21 +0000
commit70f3917b0e7bcf50225194ff1a51de84b701bc1e (patch)
treeec08ab7626539a1257a9ea0a4628fca28ec3ca11 /llvm/lib/AsmParser/LLParser.cpp
parentb0d9dec1ff7a888dceeb3ae28c9a8f23676ead18 (diff)
downloadbcm5719-llvm-70f3917b0e7bcf50225194ff1a51de84b701bc1e.tar.gz
bcm5719-llvm-70f3917b0e7bcf50225194ff1a51de84b701bc1e.zip
Convert to using the Attributes::Builder interface.
llvm-svn: 165465
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 048afae9f10..a0002ee4bca 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2779,7 +2779,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
AttrListPtr PAL = AttrListPtr::get(Attrs);
- if (PAL.paramHasAttr(1, Attribute::StructRet) && !RetType->isVoidTy())
+ if (PAL.getParamAttributes(1).hasStructRetAttr() && !RetType->isVoidTy())
return Error(RetTypeLoc, "functions with 'sret' argument must return void");
FunctionType *FT =
OpenPOWER on IntegriCloud