From 237153993f239201b2e2379efdc9936554f21b74 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Sun, 10 May 2020 20:24:27 +0100 Subject: [PATCH] Runtime: define get_return_address for WebAssembly --- stdlib/public/runtime/Exclusivity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/public/runtime/Exclusivity.cpp b/stdlib/public/runtime/Exclusivity.cpp index aa6993d29284f..c5dbbbd46763e 100644 --- a/stdlib/public/runtime/Exclusivity.cpp +++ b/stdlib/public/runtime/Exclusivity.cpp @@ -38,6 +38,8 @@ #elif _MSC_VER #include #define get_return_address() _ReturnAddress() +#elif defined(__wasi__) +#define get_return_address() ((void*) 0) #else #error missing implementation for get_return_address #define get_return_address() ((void*) 0)