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:
Tony Wasserka committed 2023-12-26 16:02:08 +01:00
1 parent 48c2e0689a
commit bcd0efa724
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}