Revert "Forbid 3-byte struct pass/return by value, document struct value pass/return"

This commit is contained in:
Bob Andrews
2023-05-03 14:24:13 +02:00
committed by GitHub
parent f3c0f7c6ce
commit 6ffc4004d7
3 changed files with 5 additions and 147 deletions

View File

@@ -803,6 +803,7 @@ const Type* GetStructReplacementType (const Type* SType)
switch (SizeOf (SType)) {
case 1: NewType = type_uchar; break;
case 2: NewType = type_uint; break;
case 3: /* FALLTHROUGH */
case 4: NewType = type_ulong; break;
default: NewType = SType; break;
}