I got the predicate backwards in my last patch. The comment is correct, the code was not.
llvm-svn: 47264
This commit is contained in:
parent
bdf7ed9495
commit
a54570d2d2
|
@ -107,7 +107,7 @@ bool Argument::hasNoAliasAttr() const {
|
|||
/// it in its containing function.
|
||||
bool Argument::hasStructRetAttr() const {
|
||||
if (!isa<PointerType>(getType())) return false;
|
||||
if (getArgNo()) return false; // StructRet param must be first param
|
||||
if (this != getParent()->arg_begin()) return false; // StructRet param must be first param
|
||||
return getParent()->paramHasAttr(1, ParamAttr::StructRet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue