commit | c46c723a1b43485485fe2e33fb31ca959d612343 | [log] [tgz] |
---|---|---|
author | Ilya Kirillov <ilya.kirillov@jetbrains.com> | Sun Jul 10 23:20:33 2022 +0200 |
committer | Ilya Kirillov <ilya.kirillov@jetbrains.com> | Sun Jul 10 23:20:33 2022 +0200 |
tree | d3a63e28c160af14185d25941918ce94892e6711 | |
parent | 795b6656dbe5b6086260c84211202581a1de2201 [diff] |
[LL FIR] invalidate ValueWithPostCompute cache state on PCE
diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/caches/ValueWithPostCompute.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/caches/ValueWithPostCompute.kt index c669476..97e24b2 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/caches/ValueWithPostCompute.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/caches/ValueWithPostCompute.kt
@@ -78,7 +78,9 @@ _postCompute!!(key, calculated, data) calculated } catch (e: Throwable) { - if (e !is ProcessCanceledException) { + if (e is ProcessCanceledException) { + value = ValueIsNotComputed + } else { value = ExceptionWasThrownDuringValueComputation(e) } throw e