diff --git a/src/vm/llvm/vm_tgc5c.cpp b/src/vm/llvm/vm_tgc5c.cpp index b928011..1aafb8b 100644 --- a/src/vm/llvm/vm_tgc5c.cpp +++ b/src/vm/llvm/vm_tgc5c.cpp @@ -2553,7 +2553,11 @@ private: this->gen_instr_prologue(); /*generate behavior*/ - this->gen_wait(1); + auto wait_arg0 = this->gen_const(8,1); + std::vector wait_args{ + wait_arg0 + }; + this->builder.CreateCall(this->mod->getFunction("wait"), wait_args); bb = BasicBlock::Create(this->mod->getContext(), "entry", this->func, this->leave_blk); auto returnValue = std::make_tuple(CONT,bb);