projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fffb61d
)
Fix crash when not setting GCOV_PREFIX.
author
Nick Lewycky
<nicholas@mxc.ca>
Wed, 4 May 2011 03:58:45 +0000
(
03:58
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Wed, 4 May 2011 03:58:45 +0000
(
03:58
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130834
91177308
-0d34-0410-b5e6-
96231b3b80d8
runtime/libprofile/GCDAProfiling.c
patch
|
blob
|
history
diff --git
a/runtime/libprofile/GCDAProfiling.c
b/runtime/libprofile/GCDAProfiling.c
index 2dcf22d96472045f70a7d2f8519337efa694fadb..13fe0fd873dfdcc5bb1f50f8316f60aba4a53ebe 100644
(file)
--- a/
runtime/libprofile/GCDAProfiling.c
+++ b/
runtime/libprofile/GCDAProfiling.c
@@
-54,7
+54,7
@@
static char *mangle_filename(const char *orig_filename) {
prefix = getenv("GCOV_PREFIX");
if (!prefix)
- return strdup(filename);
+ return strdup(
orig_
filename);
filename = malloc(strlen(prefix) + 1 + strlen(orig_filename) + 1);
strcpy(filename, prefix);