[wasm] Move RETURN_ADDRESS macros to mini.h, use them in mini-exceptions.h and add...
[mono.git] / mono / mini / mini-exceptions.c
index 9f5c87b6a13194aaf1afee42f1c0ecef32cbf445..ae4a87ccae0ef6293e1400c9018455242024bbaf 100644 (file)
@@ -3285,7 +3285,7 @@ mono_llvm_load_exception (void)
 
        if (mono_ex->trace_ips) {
                GList *trace_ips = NULL;
-               gpointer ip = __builtin_return_address (0);
+               gpointer ip = RETURN_ADDRESS ();
 
                size_t upper = mono_array_length (mono_ex->trace_ips);