diff --git a/gen_input/templates/asmjit/CORENAME.cpp.gtl b/gen_input/templates/asmjit/CORENAME.cpp.gtl index 245727b..87ab923 100644 --- a/gen_input/templates/asmjit/CORENAME.cpp.gtl +++ b/gen_input/templates/asmjit/CORENAME.cpp.gtl @@ -104,7 +104,7 @@ protected: void gen_instr_prologue(jit_holder& jh); void gen_instr_epilogue(jit_holder& jh); inline void gen_raise(jit_holder& jh, uint16_t trap_id, uint16_t cause); - template >> void gen_set_tval(jit_holder& jh, T new_tval) ; + template ::value>::type> void gen_set_tval(jit_holder& jh, T new_tval) ; void gen_set_tval(jit_holder& jh, x86_reg_t _new_tval) ; template::type> @@ -310,8 +310,8 @@ void vm_impl::gen_set_tval(jit_holder& jh, T new_tval) { } template void vm_impl::gen_set_tval(jit_holder& jh, x86_reg_t _new_tval) { - if(std::holds_alternative(_new_tval)) { - x86::Gp new_tval = std::get(_new_tval); + if(nonstd::holds_alternative(_new_tval)) { + x86::Gp new_tval = nonstd::get(_new_tval); if(new_tval.size() < 8) new_tval = gen_ext_Gp(jh.cc, new_tval, 64, false); mov(jh.cc, jh.globals[TVAL], new_tval); diff --git a/src/vm/asmjit/vm_tgc5c.cpp b/src/vm/asmjit/vm_tgc5c.cpp index 7f0729a..c99cc8a 100644 --- a/src/vm/asmjit/vm_tgc5c.cpp +++ b/src/vm/asmjit/vm_tgc5c.cpp @@ -104,7 +104,7 @@ protected: void gen_instr_prologue(jit_holder& jh); void gen_instr_epilogue(jit_holder& jh); inline void gen_raise(jit_holder& jh, uint16_t trap_id, uint16_t cause); - template >> void gen_set_tval(jit_holder& jh, T new_tval) ; + template ::value>::type> void gen_set_tval(jit_holder& jh, T new_tval) ; void gen_set_tval(jit_holder& jh, x86_reg_t _new_tval) ; template::type> @@ -4850,8 +4850,8 @@ void vm_impl::gen_set_tval(jit_holder& jh, T new_tval) { } template void vm_impl::gen_set_tval(jit_holder& jh, x86_reg_t _new_tval) { - if(std::holds_alternative(_new_tval)) { - x86::Gp new_tval = std::get(_new_tval); + if(nonstd::holds_alternative(_new_tval)) { + x86::Gp new_tval = nonstd::get(_new_tval); if(new_tval.size() < 8) new_tval = gen_ext_Gp(jh.cc, new_tval, 64, false); mov(jh.cc, jh.globals[TVAL], new_tval); @@ -4900,4 +4900,4 @@ volatile std::array dummy = { }; } } -// clang-format on \ No newline at end of file +// clang-format on