mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
I got the predicate backwards in my last patch. The comment is correct, the code was not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26d914ada3
commit
874a892c99
@ -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…
x
Reference in New Issue
Block a user