mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 09:45:02 +01:00
Fix nullptr -> nullopt (#1201)
Error in #1193, I should have tested more.
This commit is contained in:
@@ -28,7 +28,7 @@ void ParseAndExecute(const Fuzzing::CompilationUnit& compilation_unit) {
|
||||
AddPrelude("executable_semantics/data/prelude.carbon", &arena,
|
||||
&ast->declarations);
|
||||
const ErrorOr<int> result =
|
||||
ExecProgram(&arena, *ast, /*trace_stream=*/nullptr);
|
||||
ExecProgram(&arena, *ast, /*trace_stream=*/std::nullopt);
|
||||
if (!result.ok()) {
|
||||
llvm::errs() << "Execution failed: " << result.error().message() << "\n";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user