From 524b5d05dee915dbcd64f841dc8f454112e22473 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 5 Oct 2017 08:23:58 -0400 Subject: [PATCH] nitc: explain asserts only if Array is available, for nitcg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit nitcg failed on base.isa.base_isa_vt_gen1. Signed-off-by: Alexis Laferrière --- src/compiler/abstract_compiler.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index 08cdb07..d93eba1 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -3637,6 +3637,9 @@ redef class AAssertExpr var nas = v.compiler.modelbuilder.model.get_mclasses_by_name("NativeArray") if nas == null then return + nas = v.compiler.modelbuilder.model.get_mclasses_by_name("Array") + if nas == null or nas.is_empty then return + var expr = explain_assert_str.expr(v) if expr == null then return -- 1.7.9.5