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
This commit is contained in:
Bill Wendling 2012-03-28 02:39:06 +00:00
parent 7242a4fb86
commit d4ec0547a2

View File

@ -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);
}