aboutsummaryrefslogtreecommitdiff
path: root/src/stage1
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-12-28 11:17:14 +0100
committerVeikka Tuominen <git@vexu.eu>2020-12-28 15:27:31 +0200
commitfffb0904f898d47800aa418085dc6064d02c32fe (patch)
treec29e9ba6d134117372b6dd088637ff947068cef5 /src/stage1
parent8aab1e2e8ad1451a22a48109006babf463a09e9e (diff)
downloadzig-fffb0904f898d47800aa418085dc6064d02c32fe.tar.gz
zig-fffb0904f898d47800aa418085dc6064d02c32fe.zip
stage1: Prevent crash with some lazy pointer types
Make sure the child element is not undefined, let's catch this problem early on. Closes #7568
Diffstat (limited to 'src/stage1')
-rw-r--r--src/stage1/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stage1/ir.cpp b/src/stage1/ir.cpp
index eca589a710..d3ed3cfaab 100644
--- a/src/stage1/ir.cpp
+++ b/src/stage1/ir.cpp
@@ -13763,7 +13763,7 @@ static ZigValue *ir_resolve_type_lazy(IrAnalyze *ira, IrInstGen *type_value) {
Error err;
if ((err = ir_resolve_const_val(ira->codegen, ira->new_irb.exec, type_value->base.source_node,
- type_value->value, LazyOk)))
+ type_value->value, LazyOkNoUndef)))
{
return nullptr;
}