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 ea2a56a..3a48bb2 100644
--- a/runtime/libprofile/GCDAProfiling.c
+++ b/runtime/libprofile/GCDAProfiling.c
@@ -119,7 +119,7 @@
 
     if (!output_file) {
       fprintf(stderr, "LLVM profiling runtime: while opening '%s': ",
-              filename);
+              cptr ? cptr + 1 : orig_filename);
       perror("");
       exit(1);
     }