From 8a5ffd03dc5c7cc1de4c1f89cc5fb2be46b81cec Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 10 Dec 2023 22:37:39 +0800 Subject: [PATCH] standalone_miri - Fix a MSVC build error --- tools/standalone_miri/miri_extern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/standalone_miri/miri_extern.cpp b/tools/standalone_miri/miri_extern.cpp index a94e1512..04031466 100644 --- a/tools/standalone_miri/miri_extern.cpp +++ b/tools/standalone_miri/miri_extern.cpp @@ -305,7 +305,7 @@ bool InterpreterThread::call_extern(Value& rv, const ::std::string& link_name, c const auto& sym_alloc = args.at(1).get_relocation(0); // TODO: Ensure that first arg is a FFI pointer with offset+size of zero - void* handle = handle_alloc.ffi().ptr_value; + void* handle = handle_alloc.ffi().ptr_value(); // TODO: Get either a FFI data pointer, or a inner data pointer const void* symname = sym_alloc.alloc().data_ptr(); // TODO: Sanity check that it's a valid c string within its allocation