V4: remove invalid assert.
Both the base and the index of a subscript can (and are allowed to) be other things than temporaries. Change-Id: If073e262712bab488f18eac5ebe097be99c40359 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
828c8230df
commit
a822c2c11c
|
@ -230,9 +230,7 @@ void IRDecoder::visitExp(V4IR::Exp *s)
|
|||
Q_ASSERT(member->base->asTemp());
|
||||
callProperty(member->base->asTemp(), *member->name, c->args, 0);
|
||||
} else if (Subscript *s = c->base->asSubscript()) {
|
||||
Q_ASSERT(s->base->asTemp());
|
||||
Q_ASSERT(s->index->asTemp());
|
||||
callSubscript(s->base->asTemp(), s->index->asTemp(), c->args, 0);
|
||||
callSubscript(s->base, s->index, c->args, 0);
|
||||
} else {
|
||||
Q_UNIMPLEMENTED();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue