From a45fcd28db032099aaa24b3a6472f957cbe3c4b9 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sat, 17 Aug 2024 08:22:04 +0200 Subject: [PATCH] updates fn calling generation --- src/vm/llvm/vm_tgc5c.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);