Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmeow committed Jul 31, 2024
1 parent d813e9a commit c53d7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchain/driver/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ class Driver::CompilationUnit {
}

// The TreeAndSubtrees is mainly used for debugging and diagnostics, and has
// significant overhead. Avoid constructing it otherwise.
// significant overhead. Avoid constructing it when unused.
auto GetParseTreeAndSubtrees() -> const Parse::TreeAndSubtrees& {
if (!parse_tree_and_subtrees_) {
parse_tree_and_subtrees_ = Parse::TreeAndSubtrees(*tokens_, *parse_tree_);
Expand Down

0 comments on commit c53d7fc

Please sign in to comment.