From d4ec0547a210f9f2f34e0c4631586a179bd97571 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 28 Mar 2012 02:39:06 +0000 Subject: [PATCH] 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 --- runtime/libprofile/GCDAProfiling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }