diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2023-04-28 10:04:55 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-04-28 18:46:43 +0200 |
| commit | a63347100c74ea857d3595aa564d95e5e2416508 (patch) | |
| tree | 560d8cf209a384813e64e8ac97aa8fa383234b61 /src/qmlcompiler/qqmljsbasicblocks.cpp | |
| parent | bb8163a53325555b28adbdc36e8b4372d292fc60 (diff) | |
QmlCompiler: Remove emptyListType
It was a stop-gap solution on the way to actual list type support. It
creates problems because it's a sequence type but doesn't have a value
type.
Add an assert to catch related problems earlier in the future.
Fixes: QTBUG-113265
Change-Id: Iae955ab6c5ca41113095b523a5d6b9bcfd4d2396
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsbasicblocks.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljsbasicblocks.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsbasicblocks.cpp b/src/qmlcompiler/qqmljsbasicblocks.cpp index 4d8ab49367..506bed15b3 100644 --- a/src/qmlcompiler/qqmljsbasicblocks.cpp +++ b/src/qmlcompiler/qqmljsbasicblocks.cpp @@ -302,6 +302,7 @@ void QQmlJSBasicBlocks::populateReaderLocations() if (!blockInstr->second.isRename && containsAny( readIt->second.content.conversionOrigins(), access.trackedTypes)) { Q_ASSERT(readIt->second.content.isConversion()); + Q_ASSERT(readIt->second.content.conversionResult()); access.typeReaders[blockInstr.key()] = readIt->second.content.conversionResult(); } |
