From 2c8b749ee7cb98979fdc24fb36af7f0de13b4e0f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Dec 2012 22:57:06 +0100 Subject: [PATCH] Fix assertion Change-Id: I2c79d7c8c5f8624a5cfd5cb1c5af1488ccd5aada Reviewed-by: Simon Hausmann --- qv4codegen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qv4codegen.cpp b/qv4codegen.cpp index 35e1014..4802786 100644 --- a/qv4codegen.cpp +++ b/qv4codegen.cpp @@ -1493,8 +1493,8 @@ void Codegen::linearize(IR::Function *function) if (!trace.contains(b)) { foreach (IR::BasicBlock *out, b->out) { int idx = out->in.indexOf(b); - assert(idx >= 0); - out->in.remove(idx); + if (idx >= 0) + out->in.remove(idx); } delete b; } -- 2.7.4