diff --git a/src/pass_mpi_collective.cpp b/src/pass_mpi_collective.cpp index 0271dcc25a9f4cd6d5be3b9d2fa367a6a858f919..bfca0c49a4b58954b5bee363321afe298b7cb47b 100644 --- a/src/pass_mpi_collective.cpp +++ b/src/pass_mpi_collective.cpp @@ -176,17 +176,17 @@ char *pass_mpi_collective::cfgviz_generate_filename(function *fun, target_filename = (char *)xmalloc(1024 * sizeof(char)); int line = LOCATION_LINE(fun->function_start_locus); - const char * mfilename = - std::filesystem::path(LOCATION_FILE(fun->function_start_locus)) - .filename().c_str(); + const char *mfilename = + std::filesystem::path(LOCATION_FILE(fun->function_start_locus)) + .filename().c_str(); snprintf(target_filename, 1024, "%s%s_%s_%d_%s.dot", - "dot/", - mfilename, - function_name(fun), - line, - suffix); - + "dot/", + mfilename, + function_name(fun), + line, + suffix); + return target_filename; }