Skip to content

Commit 5bffbe7

Browse files
committed
Don't rely on implicit std::filesystem::path --> std::string conversion
Signed-off-by: Mark Schofield <[email protected]>
1 parent e7f0455 commit 5bffbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onnx-mlir.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int main(int argc, char *argv[]) {
9292
// Add the short inputFilename to the first compile phase printout so that we
9393
// may better determine which compilation we are dealing with.
9494
std::filesystem::path p(inputFilename);
95-
std::string modelShortName = p.filename();
95+
std::string modelShortName = p.filename().string();
9696
// Configure compile phase information.
9797
SET_TOTAL_COMPILE_PHASE(emissionTarget);
9898
std::string msg =

0 commit comments

Comments
 (0)