aboutsummaryrefslogtreecommitdiffstats
path: root/.gitmodules
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2018-03-08 11:21:11 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2018-03-09 21:58:47 +0000
commit727ddee130271242e20a7a2d3a66d49b3e2c0d0c (patch)
tree67340c4d23ab3fb7aa9847a9e930ce87da11f14a /.gitmodules
parentaa94c6c0469b0595f483f13ac88459f0035deef9 (diff)
Fix failing assertion when loading QML/JS on Integrity
With the QV4::Moth::BytecodeGenerator::Jump type we are relying on the compiler doing a return value optimization. That however is not required by the C++11 standard and the GHS compiler does indeed not do that here, resulting in a ~Jump destructor call in the following sequence _before_ link() is called: Jump generateJump() { ...; return Jump(...); } ... generateJump().link(); The destructor however verifies that link() was called, which fails. Fix this by making Jump a move-only type, which the compiler will issue if it doesn't perform a return value optimization. Task-number: QTBUG-66917 Change-Id: I97cc9a5d7f97d61e573ad8bc309cf48ab18eb25d Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions