diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-02-18 12:31:54 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-02-18 16:48:50 +0100 |
| commit | 88147eb3f621e7d972410698d6edca16493d7c66 (patch) | |
| tree | 8160e8d50f1a35965c32a680ab4266dff7d3b1d7 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | ae12302a9e0776fe6ecbe0b0823554223e030e6b (diff) | |
QmlCompiler: Avoid infinite loop in dead store elimination
We have to mark the required variables also in block 0. And we shouldn't
generate empty blocks.
Pick-to: 6.3
Fixes: QTBUG-101011
Change-Id: I0dd19f69f45f507cb83e2ddfba3060de48a940b4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index db70df4522..46e0b4fb90 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -650,6 +650,7 @@ void tst_QmlCppCodegen::interestingFiles_data() QTest::addRow("dynamicscene") << u"dynamicscene.qml"_qs << true; QTest::addRow("curlygrouped") << u"curlygrouped.qml"_qs << true; QTest::addRow("cycleHead") << u"cycleHead.qml"_qs << false; + QTest::addRow("deadStoreLoop") << u"deadStoreLoop.qml"_qs << true; } void tst_QmlCppCodegen::interestingFiles() |
