Fix FPTrunc

This commit is contained in:
Sofia 2025-07-24 23:20:26 +03:00
parent 3c15f71bee
commit f2ea749566

View File

@ -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),