aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-03-31 15:52:47 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-03-31 14:28:36 +0000
commitf261a534cc96d41cee15462795844116887bd99a (patch)
tree8ec2d6890694de267386758ed3be7c2861168dbe /src/qml/qml
parent0043fab778f2497f644c434a194b5c5eec851819 (diff)
V4: Set correct source locations for jumps out of conditionalsv5.9.0-beta1
We always want to place the jump on the last line of the conditionally executed statement, unless we might never execute the last line. In the latter case, that is if the inner statement is again a conditional, we use some token of the outer condition. This works fine with loops, as the loop condition is actually checked after each iteration, and it's plausible to the user that we jump there. With "if" statements, it's not so great. We cannot really explain why we jump back to the "if" token after executing the conditional statement. However, we have to add some source location to the jump instruction as otherwise it uses the source location of the last statement that had one, which is rather random. Task-number: QTBUG-59204 Task-number: QTBUG-59774 Change-Id: I48e331ce1c1830f236e16b75c9201a2f490d2092 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml')
0 files changed, 0 insertions, 0 deletions