summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-05-25 00:57:21 +0000
committerBill Wendling <isanbard@gmail.com>2012-05-25 00:57:21 +0000
commit8e705852b73adda90fd46c5568203a95e041f023 (patch)
tree754b79621c35b5f14e1b4d79f53d3c1c9ae0a377
parentfec1fc3b851313154b26e1be445806e877aae04e (diff)
downloadbcm5719-llvm-8e705852b73adda90fd46c5568203a95e041f023.tar.gz
bcm5719-llvm-8e705852b73adda90fd46c5568203a95e041f023.zip
Early-continue.Reducing indentation.
llvm-svn: 157451
-rw-r--r--llvm/runtime/libprofile/GCDAProfiling.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/llvm/runtime/libprofile/GCDAProfiling.c b/llvm/runtime/libprofile/GCDAProfiling.c
index 568b2b0faa4..2c373484bb3 100644
--- a/llvm/runtime/libprofile/GCDAProfiling.c
+++ b/llvm/runtime/libprofile/GCDAProfiling.c
@@ -85,17 +85,16 @@ static void recursive_mkdir(const char *filename) {
int i, e;
for (i = 1, e = strlen(filename); i != e; ++i) {
- if (filename[i] == '/') {
- pathname = malloc(i + 1);
- strncpy(pathname, filename, i);
- pathname[i] = '\0';
+ if (filename[i] != '/') continue;
+ pathname = malloc(i + 1);
+ strncpy(pathname, filename, i);
+ pathname[i] = '\0';
#ifdef _WIN32
- _mkdir(pathname);
+ _mkdir(pathname);
#else
- mkdir(pathname, 0750); /* some of these will fail, ignore it. */
+ mkdir(pathname, 0750); /* some of these will fail, ignore it. */
#endif
- free(pathname);
- }
+ free(pathname);
}
}
OpenPOWER on IntegriCloud