From 4d8cf3b3f594f4ae74e05002ee6fff8eb3c47cda Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Tue, 21 Nov 2023 11:24:45 -0800 Subject: [PATCH] Fix LLVM version bound on SPIR-V target. --- src/tcompiler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tcompiler.cpp b/src/tcompiler.cpp index 982af032..612237cb 100644 --- a/src/tcompiler.cpp +++ b/src/tcompiler.cpp @@ -808,20 +808,26 @@ struct CCallingConv { ppc64_int_limit = 8; ppc64_count_used = true; } break; +#if LLVM_VERSION >= 150 case Triple::ArchType::spirv32: case Triple::ArchType::spirv64: { spirv_cconv = true; } break; +#endif case Triple::ArchType::wasm32: case Triple::ArchType::wasm64: { wasm_cconv = true; } break; + default: + break; } switch (Triple.getOS()) { case Triple::OSType::Win32: { return_empty_struct_as_void = true; } break; + default: + break; } }