aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-03-07 09:44:18 +0000
committergingerBill <bill@gingerbill.org>2025-03-07 09:44:18 +0000
commitf3210eccaf6d5a9ccb46040d74aabf4f4b85cd86 (patch)
treec36bcb93b8ebfe311678bd2fdc3e9773ebdcb364 /src/llvm_backend_proc.cpp
parent97d410c2aee5fd7222dcfde57ada3f68009c57a0 (diff)
Fix #4866
Diffstat (limited to 'src/llvm_backend_proc.cpp')
-rw-r--r--src/llvm_backend_proc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp
index a835ae2c8..ad14e4fcd 100644
--- a/src/llvm_backend_proc.cpp
+++ b/src/llvm_backend_proc.cpp
@@ -3621,6 +3621,7 @@ gb_internal lbValue lb_build_call_expr_internal(lbProcedure *p, Ast *expr) {
GB_ASSERT(ce->args.count == 1);
lbValue x = lb_build_expr(p, ce->args[0]);
lbValue y = lb_emit_conv(p, x, tv.type);
+ y.type = tv.type;
return y;
}