aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-06-12 16:07:27 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-06-19 13:35:47 +0000
commit4d329ef984d0f64b9446321ef63fc5a70cd103cd (patch)
tree4f63032d19c28dcf7cd263924e806fb8f2cf11c7 /src/qml/compiler/qv4bytecodegenerator_p.h
parent2c0db96b0ea1b8d4daa5d0fda8b9b22270b5ab4b (diff)
Add the push instruction required to set up the temps
And a commented out finalize() call to the bytecodegenerator Change-Id: Iaaf8981ee658e19b6816589d4340a8e5744764b7 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h
index d3fe18c7c3..7996374175 100644
--- a/src/qml/compiler/qv4bytecodegenerator_p.h
+++ b/src/qml/compiler/qv4bytecodegenerator_p.h
@@ -78,7 +78,8 @@ public:
CodeRef addInstruction(const InstrData<InstrT> &data)
{
Instr genericInstr;
- InstrMeta<InstrT>::setData(genericInstr, data);
+ genericInstr.common.instructionType = static_cast<Instr::Type>(InstrT);
+ InstrMeta<InstrT>::setDataNoCommon(genericInstr, data);
return { addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr) };
}