mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 15:00:17 +02:00
Thunks: Build fix for clang versions older than 15
Returning incomplete types from deleted functions is valid C++, but clang did not support it until version 15: https://github.com/llvm/llvm-project/issues/52802
This commit is contained in:
1 parent
48c2e0689a
commit
bcd0efa724
1 file changed
+1
-1
@@ -174,7 +174,7 @@ void GenerateThunkLibsAction::EmitLayoutWrappers(
|
||||
// Disallow use of layout wrappers for this type by specializing without a definition
|
||||
fmt::print(file, "template<>\nstruct guest_layout<{}>;\n", struct_name);
|
||||
fmt::print(file, "template<>\nstruct host_layout<{}>;\n", struct_name);
|
||||
fmt::print(file, "guest_layout<{}> to_guest(const host_layout<{}>&) = delete;\n", struct_name, struct_name);
|
||||
fmt::print(file, "guest_layout<{}>& to_guest(const host_layout<{}>&) = delete;\n", struct_name, struct_name);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user