diff options
| author | jon lipstate <52809771+jon-lipstate@users.noreply.github.com> | 2023-05-30 08:23:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 08:23:28 -0700 |
| commit | b223bc0302b54bb0629bd94d0b16e0f0720b6682 (patch) | |
| tree | eaa5de636a3fd8f5b008270fbaff268f40769f8c /src/llvm_backend_general.cpp | |
| parent | f5dcbf517b88d7479fa12d5f3b59183a447cae6f (diff) | |
| parent | 3562a38f8cdd43792b6cdfd3327d16b65d25e5d0 (diff) | |
Merge branch 'odin-lang:master' into attr_error
Diffstat (limited to 'src/llvm_backend_general.cpp')
| -rw-r--r-- | src/llvm_backend_general.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp index 7d2f574fe..628c1e5fa 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -677,7 +677,7 @@ gb_internal void lb_addr_store(lbProcedure *p, lbAddr addr, lbValue value) { return; } GB_ASSERT(value.type != nullptr); - if (is_type_untyped_undef(value.type)) { + if (is_type_untyped_uninit(value.type)) { Type *t = lb_addr_type(addr); value.type = t; value.value = LLVMGetUndef(lb_type(p->module, t)); @@ -1828,7 +1828,7 @@ gb_internal LLVMTypeRef lb_type_internal(lbModule *m, Type *type) { case Basic_UntypedString: GB_PANIC("Basic_UntypedString"); break; case Basic_UntypedRune: GB_PANIC("Basic_UntypedRune"); break; case Basic_UntypedNil: GB_PANIC("Basic_UntypedNil"); break; - case Basic_UntypedUndef: GB_PANIC("Basic_UntypedUndef"); break; + case Basic_UntypedUninit: GB_PANIC("Basic_UntypedUninit"); break; } break; case Type_Named: |