From 48d1addffb62dabdaf35a41fe04a6f55bba1b5d6 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sun, 7 May 2023 20:35:51 +1000 Subject: [PATCH] Fix build --- Cargo.lock | 4 ++-- fmm-llvm/src/instruction.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f679e647..79c89399 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -256,9 +256,9 @@ checksum = "ece97ea872ece730aed82664c424eb4c8291e1ff2480247ccf7409044bc6479f" [[package]] name = "llvm-sys" -version = "140.0.5" +version = "150.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fe3609d79f74a2e4e158e3eaa61c2e931cecba242a79de5529cec2f92b423b7" +checksum = "64be8a29d08e3165e4ed989b80cbc6b52104c543f16e272b83e2dedb749e81e6" dependencies = [ "cc", "lazy_static", diff --git a/fmm-llvm/src/instruction.rs b/fmm-llvm/src/instruction.rs index 2024c31b..9e7bed31 100644 --- a/fmm-llvm/src/instruction.rs +++ b/fmm-llvm/src/instruction.rs @@ -107,7 +107,7 @@ fn compile_instruction<'c, 'a>( } Instruction::Call(call) => { let value = builder.build_call( - inkwell::values::CallableValue::try_from( + inkwell::values::CallSiteValue::try_from( compile_expression(call.function()).into_pointer_value(), ) .unwrap(),