diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-01 18:19:25 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-05 12:11:18 -0500 |
| commit | ece8d6c2fa8ec5e851a00efdc1f407ecfc663f11 (patch) | |
| tree | ff0956c60742e716b7463d4e44729169121dd0ca /src/ir.cpp | |
| parent | 55e54d98c47a0f1fb951f2011c6fc221af68d537 (diff) | |
| download | zig-ece8d6c2fa8ec5e851a00efdc1f407ecfc663f11.tar.gz zig-ece8d6c2fa8ec5e851a00efdc1f407ecfc663f11.zip | |
comptime load of vector element
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index f47d5cf072..f0f6c0ea7e 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -17744,7 +17744,7 @@ static IrInstruction *ir_analyze_instruction_elem_ptr(IrAnalyze *ira, IrInstruct zig_panic("TODO elem ptr on a slice has a null pointer"); } return result; - } else if (array_type->id == ZigTypeIdArray) { + } else if (array_type->id == ZigTypeIdArray || array_type->id == ZigTypeIdVector) { IrInstruction *result; if (orig_array_ptr_val->data.x_ptr.mut == ConstPtrMutInfer) { result = ir_build_elem_ptr(&ira->new_irb, elem_ptr_instruction->base.scope, |
