diff options
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator_p.h | 3 |
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) }; } |