diff options
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 0cc803d63c..c29e3653eb 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -248,6 +248,8 @@ static LLVMValueRef gen_field_access_expr(CodeGen *g, AstNode *node) { TypeTableEntry *type_entry; LLVMValueRef ptr = gen_field_ptr(g, node, &type_entry); return LLVMBuildLoad(g->builder, ptr, ""); + } else if (struct_type->id == TypeTableEntryIdPointer) { + zig_panic("TODO struct pointer access"); } else { zig_panic("gen_field_access_expr bad struct type"); } |
