aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2020-06-24 21:04:31 +0300
committerAndrew Kelley <andrew@ziglang.org>2020-06-24 23:58:02 -0400
commit2fde8249b72f22ddfa16793c245315f30c7f3ff8 (patch)
tree1b5eddc4444c3c1cc09df2c01963cc3cd02d344c /src/ir.cpp
parentd337469e4484ffd160b4508e2366fefd435f6c8a (diff)
downloadzig-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.cpp1
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) {