Skip to content

Commit

Permalink
Initialize Unit.cpp_ast to null by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bricknerb committed Feb 28, 2025
1 parent a216d6c commit b12945e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchain/check/check.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct Unit {
SemIR::File* sem_ir;

// The Clang AST owned by `CompileSubcommand`.
std::unique_ptr<clang::ASTUnit>* cpp_ast;
std::unique_ptr<clang::ASTUnit>* cpp_ast = nullptr;
};

// Checks a group of parse trees. This will use imports to decide the order of
Expand Down

0 comments on commit b12945e

Please sign in to comment.