[LL FIR] fix possible race in cached value reading in ValueWithPostCompute

This commit is contained in:
Ilya Kirillov
2022-07-10 23:17:22 +02:00
parent 747bff4036
commit 795b6656db
@@ -92,7 +92,7 @@ internal class ValueWithPostCompute<KEY, VALUE, DATA>(
throw stateSnapshot.error
}
else -> {
return value as VALUE
return stateSnapshot as VALUE
}
}
}