diff options
| author | Alexandros Naskos <alex_naskos@hotmail.com> | 2020-06-24 21:04:31 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-24 23:58:02 -0400 |
| commit | 2fde8249b72f22ddfa16793c245315f30c7f3ff8 (patch) | |
| tree | 1b5eddc4444c3c1cc09df2c01963cc3cd02d344c /src/ir.cpp | |
| parent | d337469e4484ffd160b4508e2366fefd435f6c8a (diff) | |
| download | zig-2fde8249b72f22ddfa16793c245315f30c7f3ff8.tar.gz zig-2fde8249b72f22ddfa16793c245315f30c7f3ff8.zip | |
Fixed crash when resolving peer types of *[N:s]const T and [*:s]const T
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 01c7936f75..3e2b75822e 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -12603,6 +12603,7 @@ static ZigType *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_node, ZigT prev_type->data.pointer.child_type->id == ZigTypeIdArray && ((cur_type->id == ZigTypeIdPointer && cur_type->data.pointer.ptr_len == PtrLenUnknown))) { + convert_to_const_slice = false; prev_inst = cur_inst; if (prev_type->data.pointer.is_const && !cur_type->data.pointer.is_const) { |
