From: Bill Wendling Date: Wed, 28 Mar 2012 02:39:06 +0000 (+0000) Subject: Use the correct filename for the error message. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d4ec0547a210f9f2f34e0c4631586a179bd97571;p=oota-llvm.git 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 --- 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); }