We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c790efc commit 6089f9cCopy full SHA for 6089f9c
src/ir/effects.h
@@ -519,7 +519,9 @@ class EffectAnalyzer {
519
// target function throws and we know that will be caught anyhow, the
520
// same as the code below for the general path. We can always filter out
521
// throws for return calls because they are already more precisely
522
- // captured by `hasReturnCallThrow` and `branchesOut`.
+ // captured by `branchesOut`, which models the return, and
523
+ // `hasReturnCallThrow`, which models the throw that will happen after
524
+ // the return.
525
if (targetEffects->throws_ && (parent.tryDepth > 0 || curr->isReturn)) {
526
auto filteredEffects = *targetEffects;
527
filteredEffects.throws_ = false;
0 commit comments