[compiler-rt] r276019 - [Profile] use portable macro /NFC

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 13:20:21 PDT 2016


Author: davidxl
Date: Tue Jul 19 15:20:20 2016
New Revision: 276019

URL: http://llvm.org/viewvc/llvm-project?rev=276019&view=rev
Log:
[Profile] use portable macro /NFC

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingUtil.c

Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.c?rev=276019&r1=276018&r2=276019&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.c Tue Jul 19 15:20:20 2016
@@ -35,7 +35,7 @@ void __llvm_profile_recursive_mkdir(char
 
   for (i = 1; path[i] != '\0'; ++i) {
     char save = path[i];
-    if (!(path[i] == '/' || path[i] == '\\'))
+    if (!IS_DIR_SEPARATOR(path[i]))
       continue;
     path[i] = '\0';
 #ifdef _WIN32




More information about the llvm-commits mailing list