llvm.org GIT mirror llvm / 43a699a
Early-continue.Reducing indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157451 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
8484 int i, e;
8585
8686 for (i = 1, e = strlen(filename); i != e; ++i) {
87 if (filename[i] == '/') {
88 pathname = malloc(i + 1);
89 strncpy(pathname, filename, i);
90 pathname[i] = '\0';
87 if (filename[i] != '/') continue;
88 pathname = malloc(i + 1);
89 strncpy(pathname, filename, i);
90 pathname[i] = '\0';
9191 #ifdef _WIN32
92 _mkdir(pathname);
92 _mkdir(pathname);
9393 #else
94 mkdir(pathname, 0750); /* some of these will fail, ignore it. */
95 #endif
96 free(pathname);
97 }
94 mkdir(pathname, 0750); /* some of these will fail, ignore it. */
95 #endif
96 free(pathname);
9897 }
9998 }
10099