Fixes error where proc-bind-var is not set when there is a parsing error of GOMP_AFFINITY environment variable.

llvm-svn: 227202
This commit is contained in:
Andrey Churbanov 2015-01-27 16:58:08 +00:00
parent f696c820cd
commit a36de4339b
1 changed files with 3 additions and 0 deletions

View File

@ -2535,6 +2535,9 @@ __kmp_stg_parse_gomp_cpu_affinity( char const * name, char const * value, void *
// Warning already emitted // Warning already emitted
// //
__kmp_affinity_type = affinity_none; __kmp_affinity_type = affinity_none;
# if OMP_40_ENABLED
__kmp_nested_proc_bind.bind_types[0] = proc_bind_false;
# endif
} }
} // __kmp_stg_parse_gomp_cpu_affinity } // __kmp_stg_parse_gomp_cpu_affinity