Skip to content

Commit

Permalink
Switch to using a string view
Browse files Browse the repository at this point in the history
  • Loading branch information
boomanaiden154 committed Feb 19, 2024
1 parent 09c71d6 commit 950402f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gematria/datasets/convert_bhive_to_llvm_exegesis_input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ bool WriteJsonFile(llvm::json::Array to_write, size_t json_file_number,
llvm::raw_fd_ostream json_output_file(json_output_file_path, file_ec);

if (file_ec) {
std::cerr << "Failed to open output file: " << json_output_file_path.c_str()
std::cerr << "Failed to open output file: "
<< static_cast<std::string_view>(json_output_file_path.str())
<< "\n";
return false;
}
Expand Down

0 comments on commit 950402f

Please sign in to comment.