Move blocktime_str variable right before its first use
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 26 Mar 2018 19:20:50 +0000 (19:20 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 26 Mar 2018 19:20:50 +0000 (19:20 +0000)
llvm-svn: 328575

openmp/runtime/src/kmp_settings.cpp

index ee3923c..6fb772b 100644 (file)
@@ -665,9 +665,6 @@ static void __kmp_stg_print_blocktime(kmp_str_buf_t *buffer, char const *name,
   __kmp_stg_print_int(buffer, name, __kmp_dflt_blocktime);
 } // __kmp_stg_print_blocktime
 
-// Used for OMP_WAIT_POLICY
-static char const *blocktime_str = NULL;
-
 // -----------------------------------------------------------------------------
 // KMP_DUPLICATE_LIB_OK
 
@@ -702,6 +699,9 @@ static void __kmp_stg_print_inherit_fp_control(kmp_str_buf_t *buffer,
 
 #endif /* KMP_ARCH_X86 || KMP_ARCH_X86_64 */
 
+// Used for OMP_WAIT_POLICY
+static char const *blocktime_str = NULL;
+
 // -----------------------------------------------------------------------------
 // KMP_LIBRARY, OMP_WAIT_POLICY