From 8e705852b73adda90fd46c5568203a95e041f023 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 25 May 2012 00:57:21 +0000 Subject: [PATCH] Early-continue.Reducing indentation. llvm-svn: 157451 --- llvm/runtime/libprofile/GCDAProfiling.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/llvm/runtime/libprofile/GCDAProfiling.c b/llvm/runtime/libprofile/GCDAProfiling.c index 568b2b0..2c37348 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); } } -- 2.7.4