mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Explorer: add missing Nonnull<> (#2486)
Trivial change adding a missing `Nonnull<>` to `RewritableMixin`.
This commit is contained in:
@@ -103,7 +103,7 @@ class RewritableMixin : public Base {
|
||||
|
||||
// Set the rewritten form of this expression. Can only be called during type
|
||||
// checking.
|
||||
auto set_rewritten_form(const Expression* rewritten_form) -> void {
|
||||
auto set_rewritten_form(Nonnull<const Expression*> rewritten_form) -> void {
|
||||
CARBON_CHECK(!rewritten_form_.has_value()) << "rewritten form set twice";
|
||||
rewritten_form_ = rewritten_form;
|
||||
this->set_static_type(&rewritten_form->static_type());
|
||||
|
||||
Reference in New Issue
Block a user