From f2ea7495667dde86d24f89faefe7f7a5ef69e7c2 Mon Sep 17 00:00:00 2001 From: sofia Date: Thu, 24 Jul 2025 23:20:26 +0300 Subject: [PATCH] Fix FPTrunc --- reid-llvm-lib/src/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reid-llvm-lib/src/compile.rs b/reid-llvm-lib/src/compile.rs index a0f8aca..e393025 100644 --- a/reid-llvm-lib/src/compile.rs +++ b/reid-llvm-lib/src/compile.rs @@ -970,7 +970,7 @@ impl InstructionHolder { ty.as_llvm(module.context_ref, &module.types), name.as_ptr(), ), - FPTrunc(instr_val, ty) => LLVMBuildTrunc( + FPTrunc(instr_val, ty) => LLVMBuildFPTrunc( module.builder_ref, module.values.get(instr_val).unwrap().value_ref, ty.as_llvm(module.context_ref, &module.types),