summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libprofile/GCDAProfiling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c
index ea2a56a8b0..3a48bb2826 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);
}