mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Ignore store undef calls
This commit is contained in:
@@ -962,8 +962,12 @@ gb_internal bool lb_is_type_proc_recursive(Type *t) {
|
|||||||
|
|
||||||
gb_internal void lb_emit_store(lbProcedure *p, lbValue ptr, lbValue value) {
|
gb_internal void lb_emit_store(lbProcedure *p, lbValue ptr, lbValue value) {
|
||||||
GB_ASSERT(value.value != nullptr);
|
GB_ASSERT(value.value != nullptr);
|
||||||
Type *a = type_deref(ptr.type);
|
|
||||||
|
|
||||||
|
if (LLVMIsUndef(value.value)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Type *a = type_deref(ptr.type);
|
||||||
if (LLVMIsNull(value.value)) {
|
if (LLVMIsNull(value.value)) {
|
||||||
LLVMTypeRef src_t = llvm_addr_type(p->module, ptr);
|
LLVMTypeRef src_t = llvm_addr_type(p->module, ptr);
|
||||||
if (is_type_proc(a)) {
|
if (is_type_proc(a)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user