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

This commit is contained in:
Bob Andrews
2023-05-03 20:02:12 +02:00
committed by GitHub
parent 59bd5fdd4c
commit ae7a1416fe
3 changed files with 147 additions and 5 deletions

View File

@@ -803,7 +803,6 @@ 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;
}