diff options
| author | gingerBill <bill@gingerbill.org> | 2024-10-30 14:12:57 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-10-30 14:12:57 +0000 |
| commit | 8a00d85cea02f38164b18d9a7e3e7d710c7a6c40 (patch) | |
| tree | 67c7f058ddf65e64189d4a76add9d6ad685b366d /src/llvm_backend_expr.cpp | |
| parent | 2392300ffbc86b09fde2a4d170b8c38f8ad0d382 (diff) | |
| parent | f469bbb0049f618d09dd1dd962389c8306db6bbc (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
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; |