diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-16 11:41:58 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-16 11:41:58 +0000 |
| commit | 68b2d4b9e243d40a8e488f5f623532a46a53fb3a (patch) | |
| tree | 1e7f5002265c406ba872f427a8f29d60f344abe3 /src/llvm_backend_expr.cpp | |
| parent | 54f02f59dbe90f701266dee703d07e7a80ca0ac8 (diff) | |
Fix #2305
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index c28e9fb2b..1fa4b4809 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -3097,6 +3097,9 @@ gb_internal lbValue lb_build_expr_internal(lbProcedure *p, Ast *expr) { // NOTE(bill): Short on constant values return lb_const_value(p->module, type, tv.value); + } else if (tv.mode == Addressing_Type) { + // NOTE(bill, 2023-01-16): is this correct? I hope so at least + return lb_typeid(m, tv.type); } switch (expr->kind) { |