Permalink
Browse files

Use the correct filename for the error message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153564 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent 7242a4f commit d4ec0547a210f9f2f34e0c4631586a179bd97571 @isanbard isanbard committed Mar 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit d4ec054

Please sign in to comment.