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:
Erik Verbruggen 2013-12-02 16:33:58 +01:00 committed by The Qt Project
parent 828c8230df
commit a822c2c11c
1 changed files with 1 additions and 3 deletions

View File

@ -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();
}