Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 571ea80

Browse files
aartbikcommit-bot@chromium.org
authored andcommitted
[vm/compiler] added assert to kernel flowgraph builder
Rationale: Yields a more gentle crash in debug mode for bug under investigation (found by DartFuzz) dart-lang/sdk#36076 Change-Id: I497fbef1ec2100b9701848c3454bef5ad7518d2b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95280 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Aart Bik <ajcbik@google.com>
1 parent b88e6dd commit 571ea80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,6 +2630,7 @@ Fragment StreamingFlowGraphBuilder::TranslateFinallyFinalizers(
26302630
// While translating the body of a finalizer we need to set the try-finally
26312631
// block which is active when translating the body.
26322632
while (B->try_finally_block_ != outer_finally) {
2633+
ASSERT(B->try_finally_block_ != nullptr);
26332634
// Set correct try depth (in case there are nested try statements).
26342635
B->try_depth_ = B->try_finally_block_->try_depth();
26352636

0 commit comments

Comments
 (0)