mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 22:02:51 +01:00
Update LLVM and switch to std::optional. (#2424)
LLVM's bazel build has changed a bit, so this updates the tree for that. LLVM is also moving `llvm::Optional` to match the standard API, but it seemed simpler to just switch to `std::optional`. Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
16bbdbbdb8
commit
94cf343b05
@@ -132,7 +132,7 @@ auto SemanticsParseTreeHandler::Push(ParseTree::Node parse_node) -> void {
|
||||
<< parse_tree_->node_kind(parse_node) << "\n";
|
||||
CARBON_CHECK(node_stack_.size() < (1 << 20))
|
||||
<< "Excessive stack size: likely infinite loop";
|
||||
node_stack_.push_back({parse_node, llvm::None});
|
||||
node_stack_.push_back({parse_node, std::nullopt});
|
||||
}
|
||||
|
||||
auto SemanticsParseTreeHandler::Push(ParseTree::Node parse_node,
|
||||
|
||||
Reference in New Issue
Block a user