We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208627c commit 4e008abCopy full SHA for 4e008ab
stdlib/public/runtime/Exclusivity.cpp
@@ -37,14 +37,14 @@
37
#include <memory>
38
39
// Pick a return-address strategy
40
-#if __GNUC__
+#if defined(__wasm__)
41
+// Wasm can't access call frame for security purposes
42
+#define get_return_address() ((void*) 0)
43
+#elif __GNUC__
44
#define get_return_address() __builtin_return_address(0)
45
#elif _MSC_VER
46
#include <intrin.h>
47
#define get_return_address() _ReturnAddress()
-#elif defined(__wasm__)
-// Wasm can't access call frame for security purposes
-#define get_return_address() ((void*) 0)
48
#else
49
#error missing implementation for get_return_address
50
#define get_return_address() ((void*) 0)
0 commit comments