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:
f2fd23b
)
MSVC doesn't like the mixing of declarations and statements in a .c file.
author
Francois Pichet
<pichet2000@gmail.com>
Tue, 27 Mar 2012 23:52:22 +0000
(23:52 +0000)
committer
Francois Pichet
<pichet2000@gmail.com>
Tue, 27 Mar 2012 23:52:22 +0000
(23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153549
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 712dba08be4b22ed3920f56bf5de7a0ac062ec5c..233a2f390f4c290b5fab4421f81cf6a0bebae683 100644
(file)
--- a/
runtime/libprofile/GCDAProfiling.c
+++ b/
runtime/libprofile/GCDAProfiling.c
@@
-114,8
+114,9
@@
void llvm_gcda_start_file(const char *orig_filename) {
output_file = fopen(filename, "wb");
if (!output_file) {
+ const char *cptr = 0;
filename[0] = '\0'; /* The size of filename should be big enough. */
- c
har *c
ptr = strrchr(orig_filename, '/');
+ cptr = strrchr(orig_filename, '/');
strcat(filename, cptr ? cptr + 1 : orig_filename);
output_file = fopen(filename, "wb");