diff --git a/tools/mlir/mlir2ncnn.cpp b/tools/mlir/mlir2ncnn.cpp index f2f38e33d..f43a3b154 100644 --- a/tools/mlir/mlir2ncnn.cpp +++ b/tools/mlir/mlir2ncnn.cpp @@ -33,14 +33,14 @@ static std::string get_mlir_value_uniq_id(const mlir::Value& value) { mlir::FileLineColLoc floc = value.getLoc().cast(); - return floc.getFilename().str() + ":" + std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); + return std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); } if (value.getLoc().isa()) { mlir::FileLineColLoc floc = value.getLoc().cast().getLocations().front().cast(); - return floc.getFilename().str() + ":" + std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); + return std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); } fprintf(stderr, "unhandled get_mlir_value_uniq_id\n");