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:
Geoff Romer
2021-06-30 13:09:12 -07:00
committed by GitHub
parent 7e70a0335e
commit fa5b9cd553
9 changed files with 90 additions and 81 deletions
+1 -1
View File
@@ -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));
}