Fix nullptr -> nullopt (#1201)

Error in #1193, I should have tested more.
This commit is contained in:
Jon Meow
2022-04-22 09:29:12 -07:00
committed by GitHub
parent 6a9625216d
commit 9356a847d7
@@ -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;