diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c index ea2a56a8b05..3a48bb28265 100644 --- a/runtime/libprofile/GCDAProfiling.c +++ b/runtime/libprofile/GCDAProfiling.c @@ -119,7 +119,7 @@ void llvm_gcda_start_file(const char *orig_filename) { if (!output_file) { fprintf(stderr, "LLVM profiling runtime: while opening '%s': ", - filename); + cptr ? cptr + 1 : orig_filename); perror(""); exit(1); }