mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 17:36:43 +00:00
Fix nullptr -> nullopt (#1201)
Error in #1193, I should have tested more.
This commit is contained in:
1 parent
6a9625216d
commit
9356a847d7
1 file changed
+1
-1
@@ -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