diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-10-30 12:24:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 12:24:23 +0000 |
| commit | f469bbb0049f618d09dd1dd962389c8306db6bbc (patch) | |
| tree | c9fc02d1e8a7583ba339d8402f17ff6874403394 /src/llvm_backend_expr.cpp | |
| parent | ee76acd665911e2f28d5183b3c0a07a665dbf858 (diff) | |
| parent | b59647084b11a7f08ad3aa54ae47ceb157f12c46 (diff) | |
Merge pull request #4425 from bobsayshilol/misc-fixes
Misc fixes
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index de7cadaf3..b5f6437a4 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -1647,7 +1647,7 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) { lb_emit_store(p, a1, id); return lb_addr_load(p, res); } else if (dst->kind == Type_Basic) { - if (src->Basic.kind == Basic_string && dst->Basic.kind == Basic_cstring) { + if (src->kind == Type_Basic && src->Basic.kind == Basic_string && dst->Basic.kind == Basic_cstring) { String str = lb_get_const_string(m, value); lbValue res = {}; res.type = t; |