Skip to content

Commit

Permalink
Fix LLVM version bound on SPIR-V target.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Nov 21, 2023
1 parent c7665ee commit 4d8cf3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tcompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 4d8cf3b

Please sign in to comment.