File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ class Cache[Config, Res]:
7575 */
7676 protected var changed : Boolean = false
7777
78+ /** Whether any value in the cache was accessed after being added.
79+ * If no cached values are used after they are added for the first time
80+ * then another iteration of analysis is not needed.
81+ */
7882 protected var cacheUsed : Boolean = false
7983
8084 /** Used to avoid allocation, its state does not matter */
Original file line number Diff line number Diff line change @@ -1137,7 +1137,7 @@ object Semantic:
11371137 def checkClasses (classes : List [ClassSymbol ])(using Context ): Unit =
11381138 given Cache .Data ()
11391139 for classSym <- classes if isConcreteClass(classSym) do
1140- total += checkClass(classSym)
1140+ checkClass(classSym)
11411141
11421142// ----- Semantic definition --------------------------------
11431143 type ArgInfo = TraceValue [Value ]
You can’t perform that action at this time.
0 commit comments