mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Use the AttributeSet query instead of the Attribute query.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c855423ff2
commit
a3bb665c65
@ -730,12 +730,12 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT,
|
||||
|
||||
VerifyParameterAttrs(Attrs, Attr.Index, Ty, Attr.Index == 0, V);
|
||||
|
||||
if (Attr.Attrs.hasAttribute(Attribute::Nest)) {
|
||||
if (Attrs.hasAttribute(Attr.Index, Attribute::Nest)) {
|
||||
Assert1(!SawNest, "More than one parameter has attribute nest!", V);
|
||||
SawNest = true;
|
||||
}
|
||||
|
||||
if (Attr.Attrs.hasAttribute(Attribute::StructRet))
|
||||
if (Attrs.hasAttribute(Attr.Index, Attribute::StructRet))
|
||||
Assert1(Attr.Index == 1, "Attribute sret is not on first parameter!", V);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user