We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c82c620 commit e827137Copy full SHA for e827137
xls/visualization/sched_printer_main.cc
@@ -347,8 +347,10 @@ absl::Status RealMain(std::string_view ir_path) {
347
XLS_RETURN_IF_ERROR(VerifyPackage(p.get()));
348
349
std::string top_str = absl::GetFlag(FLAGS_top);
350
- std::optional<std::string_view> maybe_top_str =
351
- top_str.empty() ? std::nullopt : std::make_optional(top_str);
+ std::optional<std::string_view> maybe_top_str;
+ if (!top_str.empty()) {
352
+ maybe_top_str = top_str;
353
+ }
354
XLS_ASSIGN_OR_RETURN(FunctionBase * main, FindTop(p.get(), maybe_top_str));
355
356
XLS_ASSIGN_OR_RETURN(
0 commit comments