diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-12 22:57:06 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-12 14:05:54 +0100 |
commit | 2c8b749ee7cb98979fdc24fb36af7f0de13b4e0f (patch) | |
tree | e98acb8c3f2da29877e517fa0c41ae17eaffef17 /qv4codegen.cpp | |
parent | d94c57574ac70e65c229fd3a84ee65ba8b335f64 (diff) |
Fix assertion
Change-Id: I2c79d7c8c5f8624a5cfd5cb1c5af1488ccd5aada
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qv4codegen.cpp')
-rw-r--r-- | qv4codegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qv4codegen.cpp b/qv4codegen.cpp index 35e1014d52..48027863f3 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; } |