From 2359a9899c61c65f5133f156e652a3fcf7e0963d Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Wed, 6 Mar 2024 23:57:24 +0100 Subject: [PATCH] Library Forwarding: Fix accidental data copying when converting from host to guest layout --- ThunkLibs/include/common/Host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThunkLibs/include/common/Host.h b/ThunkLibs/include/common/Host.h index 814c1875b6..10c940e0ca 100644 --- a/ThunkLibs/include/common/Host.h +++ b/ThunkLibs/include/common/Host.h @@ -368,7 +368,7 @@ T* unwrap_host(repack_wrapper& val) { template struct host_to_guest_convertible { - const host_layout from; + const host_layout& from; // Conversion from host to guest layout for non-pointers operator guest_layout() const requires(!std::is_pointer_v) {