mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 13:45:48 +01:00
Migrate declaration parsing to value semantics (#614)
* Use Expression by value in FunctionDefinition * Migrate choice declarations to value semantics * Migrate Declaration parsing to value semantics
This commit is contained in:
@@ -32,5 +32,5 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
// Typecheck and run the parsed program.
|
||||
Carbon::ExecProgram(std::get<Carbon::AST>(ast_or_error));
|
||||
Carbon::ExecProgram(&std::get<Carbon::AST>(ast_or_error));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user