diff options
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index f1834dcdd3..d28b4152b5 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3953,7 +3953,7 @@ static TypeTableEntry *analyze_for_expr(CodeGen *g, ImportTableEntry *import, Bl } TypeTableEntry *var_type; - if (node->data.for_expr.elem_is_ptr) { + if (child_type->id != TypeTableEntryIdInvalid && node->data.for_expr.elem_is_ptr) { var_type = get_pointer_to_type(g, child_type, false); } else { var_type = child_type; |
