diff options
| author | Tadeo Kondrak <me@tadeo.ca> | 2020-09-26 11:55:56 -0600 |
|---|---|---|
| committer | Tadeo Kondrak <me@tadeo.ca> | 2020-10-06 22:08:30 -0600 |
| commit | bf4bfe54ac13512d7553a7be83ae19e908e9c294 (patch) | |
| tree | c07c67a871c9a342caba87afea46c9a785216331 /src/stage1/ir.cpp | |
| parent | 6b8ae6fffb71128169de447851244869aebb882b (diff) | |
| download | zig-bf4bfe54ac13512d7553a7be83ae19e908e9c294.tar.gz zig-bf4bfe54ac13512d7553a7be83ae19e908e9c294.zip | |
Update compile error test for field access of opaque type
Diffstat (limited to 'src/stage1/ir.cpp')
| -rw-r--r-- | src/stage1/ir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stage1/ir.cpp b/src/stage1/ir.cpp index ad58f23ec3..002b7f3c87 100644 --- a/src/stage1/ir.cpp +++ b/src/stage1/ir.cpp @@ -22387,6 +22387,8 @@ static IrInstGen *ir_analyze_container_member_access_inner(IrAnalyze *ira, prefix_name = "enum "; } else if (bare_struct_type->id == ZigTypeIdUnion) { prefix_name = "union "; + } else if (bare_struct_type->id == ZigTypeIdOpaque) { + prefix_name = "opaque type "; } else { prefix_name = ""; } |
