commit | 2b135c5afc8ffa96cebe7a9ce9ae3e7251b1fadc | [log] [tgz] |
---|---|---|
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | Wed Sep 04 17:47:37 2019 +0000 |
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | Wed Sep 04 17:47:37 2019 +0000 |
tree | 045369d50015c7884206c76ef085f1badac9212f | |
parent | b93e8ad8939f319cbc53f13ba0f6f724504acfe2 [diff] |
[OpenMP] Change initialization of __kmp_global There's no need to initialize variables with static storage duration because they're implicitly initialized to zero. See https://en.cppreference.com/w/c/language/initialization#Implicit_initialization I think that's already relied upon because the supplied 0 only sets 'kmp_time_global_t g_time;' in 'struct kmp_base_global'. The other fields are not set in the code, but implicitly initialized by the compiler. Differential Revision: https://reviews.llvm.org/D66292 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@370943 91177308-0d34-0410-b5e6-96231b3b80d8