Skip to content

Commit 6089f9c

Browse files
committed
add comment detail
1 parent c790efc commit 6089f9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ir/effects.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,9 @@ class EffectAnalyzer {
519519
// target function throws and we know that will be caught anyhow, the
520520
// same as the code below for the general path. We can always filter out
521521
// throws for return calls because they are already more precisely
522-
// captured by `hasReturnCallThrow` and `branchesOut`.
522+
// captured by `branchesOut`, which models the return, and
523+
// `hasReturnCallThrow`, which models the throw that will happen after
524+
// the return.
523525
if (targetEffects->throws_ && (parent.tryDepth > 0 || curr->isReturn)) {
524526
auto filteredEffects = *targetEffects;
525527
filteredEffects.throws_ = false;

0 commit comments

Comments
 (0)