Sema: accept thumb and thumbeb with ARM calling conventions
Commit3014a0d5f1added calling convention validation, but left out thumb and thumbeb from the archs that can use the ARM-specific calling conventions. This plusa8a7f15106made compilation fail for thumb targets.
This commit is contained in:
committed by
Andrew Kelley
parent
f3069f51aa
commit
0101a5f75e
@@ -7161,7 +7161,7 @@ fn funcCommon(
|
||||
else => @as([]const u8, "i386 and AArch64"),
|
||||
},
|
||||
.APCS, .AAPCS, .AAPCSVFP => switch (arch) {
|
||||
.arm, .armeb, .aarch64, .aarch64_be, .aarch64_32 => null,
|
||||
.arm, .armeb, .aarch64, .aarch64_be, .aarch64_32, .thumb, .thumbeb => null,
|
||||
else => @as([]const u8, "ARM"),
|
||||
},
|
||||
.SysV, .Win64 => switch (arch) {
|
||||
|
||||
Reference in New Issue
Block a user