QualifiedType RawFunctionType.StackArgumentsType

The `StackArgumentsType` field of `RawFunctionType` was the only
cross-reference between `model::Type`s that did not use
`model::QualifiedType` but a naked `TupleTreeReference`.

Switching it to `QualifiedType` make all cross-references across
`model::Type`s homogeneous.
This commit is contained in:
Pietro Fezzardi
2022-04-07 23:08:20 +02:00
parent 1be847e0c0
commit 450ce79b30
4 changed files with 28 additions and 16 deletions
+6
View File
@@ -1106,6 +1106,12 @@ verifyImpl(VerifyHelper &VH, const RawFunctionType *T) {
if (Preserved == Register::Invalid)
rc_return VH.fail();
if (not T->StackArgumentsType.Qualifiers.empty())
rc_return VH.fail();
if (T->StackArgumentsType.UnqualifiedType.isValid()
and not rc_recur T->StackArgumentsType.UnqualifiedType.get()->verify(VH))
rc_return VH.fail();
rc_return VH.maybeFail(T->CustomName.verify(VH));
}