Sema: make source location in checkCallConvSupportsVarArgs more meaningful

As calling convention may not be specified explicitly in the source,
so use va_arg's location instead.

Signed-off-by: Tw <tw19881113@gmail.com>
This commit is contained in:
Tw
2024-12-06 11:42:09 +08:00
committed by Alex Rønne Petersen
parent 86064e66d6
commit d7b93c7876
2 changed files with 11 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ comptime {
// error
// target=x86_64-linux
//
// :1:1: error: variadic function does not support 'auto' calling convention
// :1:1: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
// :1:1: error: variadic function does not support 'inline' calling convention
// :1:1: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
// :1:8: error: variadic function does not support 'auto' calling convention
// :1:8: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
// :2:16: error: variadic function does not support 'inline' calling convention
// :2:16: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'