summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-03-28 02:39:06 +0000
committerBill Wendling <isanbard@gmail.com>2012-03-28 02:39:06 +0000
commitd4ec0547a210f9f2f34e0c4631586a179bd97571 (patch)
tree7c79fa56f3b22368e7d116fb6e445c99f8c6b3e4 /runtime
parent7242a4fb86d9b369a467e3a85ce02bc94c6d9dc8 (diff)
downloadllvm-d4ec0547a210f9f2f34e0c4631586a179bd97571.tar.gz
llvm-d4ec0547a210f9f2f34e0c4631586a179bd97571.tar.bz2
llvm-d4ec0547a210f9f2f34e0c4631586a179bd97571.tar.xz
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
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);
}