File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,10 @@ class LLVM_LIBRARY_VISIBILITY SPIRV64AMDGCNTargetInfo final
438
438
439
439
ArrayRef<const char *> getGCCRegNames () const override ;
440
440
441
+ BuiltinVaListKind getBuiltinVaListKind () const override {
442
+ return TargetInfo::CharPtrBuiltinVaList;
443
+ }
444
+
441
445
bool initFeatureMap (llvm::StringMap<bool > &Features, DiagnosticsEngine &Diags,
442
446
StringRef,
443
447
const std::vector<std::string> &) const override ;
Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -fsyntax-only -verify
2
+ // RUN: %clang_cc1 %s -triple spirv64-amd-amdhsa -fsyntax-only -verify
3
+
4
+ // expected-no-diagnostics
5
+
6
+ typedef char * va_list ;
7
+
8
+ void foo (const char * f , ...) {
9
+ int r ;
10
+ va_list args ;
11
+ __builtin_va_start (args , f );
12
+ __builtin_va_end (args );
13
+ }
You can’t perform that action at this time.
0 commit comments