From 5235ee68adc1bec46fb7e0cb4f327f814961d595 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 26 Feb 2023 13:15:39 -0700 Subject: [PATCH] [wasm-shape] Remove explicit running-mode setting It does it automatically. --- src/hb-wasm-shape.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index 0fbd9d6c2..5e43ff96b 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -123,11 +123,6 @@ _hb_wasm_init () RuntimeInitArgs init_args; memset (&init_args, 0, sizeof (RuntimeInitArgs)); - if (wasm_runtime_is_running_mode_supported (Mode_LLVM_JIT)) - init_args.running_mode = Mode_LLVM_JIT; - else if (wasm_runtime_is_running_mode_supported (Mode_Fast_JIT)) - init_args.running_mode = Mode_Fast_JIT; - init_args.mem_alloc_type = Alloc_With_Allocator; init_args.mem_alloc_option.allocator.malloc_func = (void *) hb_malloc; init_args.mem_alloc_option.allocator.realloc_func = (void *) hb_realloc;