aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/llvm/builder.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-20 00:26:23 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-21 00:11:25 +0100
commit105089e17aa19b326f6d0fd00b00edd9e3ad5564 (patch)
tree3b72a8c66921f7ee75703e1f7320949f476dcda1 /src/llvm/builder.rs
parent2efe1727344b4fb372df6d6ae3cbe1fa72567542 (diff)
downloadllvm-kaleidoscope-rs-105089e17aa19b326f6d0fd00b00edd9e3ad5564.tar.gz
llvm-kaleidoscope-rs-105089e17aa19b326f6d0fd00b00edd9e3ad5564.zip
bump to llvm15
Diffstat (limited to 'src/llvm/builder.rs')
-rw-r--r--src/llvm/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm/builder.rs b/src/llvm/builder.rs
index da10231..99f26b7 100644
--- a/src/llvm/builder.rs
+++ b/src/llvm/builder.rs
@@ -195,7 +195,7 @@ impl<'llvm> IRBuilder<'llvm> {
let value_ref = unsafe {
LLVMBuildCall2(
self.builder,
- fn_value.ret_type(),
+ fn_value.fn_type(),
fn_value,
args.as_mut_ptr(),
args.len() as libc::c_uint,