diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-12-02 16:33:58 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-03 09:50:38 +0100 |
commit | a822c2c11c0c1f8b2a446dbcabd9f5d09e3f2e18 (patch) | |
tree | 1186d4db9a4fd5a28b4fc641ccba2a99eaae711f /src | |
parent | 828c8230dfc58797becf2869e847eef59581918b (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/compiler/qv4isel_p.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4isel_p.cpp b/src/qml/compiler/qv4isel_p.cpp index 7f0d8313fe..7ba43dd552 100644 --- a/src/qml/compiler/qv4isel_p.cpp +++ b/src/qml/compiler/qv4isel_p.cpp @@ -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(); } |