From ce9f6edce92d1579a4ea108a5fc6aa58971400d4 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 25 Aug 2016 08:47:23 +0800 Subject: HACK - Assume that unknown-sized arrays compare equal --- src/hir/type.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/hir/type.cpp b/src/hir/type.cpp index c4dfb9c3..57e57c16 100644 --- a/src/hir/type.cpp +++ b/src/hir/type.cpp @@ -219,8 +219,11 @@ bool ::HIR::TypeRef::operator==(const ::HIR::TypeRef& x) const return false; if( xe.size_val != te.size_val ) return false; - if( te.size_val == ~0u ) + if( te.size_val == ~0u ) { + // LAZY - Assume equal + return true; assert(!"TODO: Compre array types with non-resolved sizes"); + } return true; ), (Slice, -- cgit v1.2.3