File tree 2 files changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/transform/init
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]:
75
75
*/
76
76
protected var changed : Boolean = false
77
77
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
+ */
78
82
protected var cacheUsed : Boolean = false
79
83
80
84
/** 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:
1137
1137
def checkClasses (classes : List [ClassSymbol ])(using Context ): Unit =
1138
1138
given Cache .Data ()
1139
1139
for classSym <- classes if isConcreteClass(classSym) do
1140
- total += checkClass(classSym)
1140
+ checkClass(classSym)
1141
1141
1142
1142
// ----- Semantic definition --------------------------------
1143
1143
type ArgInfo = TraceValue [Value ]
You can’t perform that action at this time.
0 commit comments