[Openmp-commits] [openmp] f613e6d - [OpenMP][libomp] Fix accidental removal of else for core attributes

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu May 19 12:00:42 PDT 2022


Author: Jonathan Peyton
Date: 2022-05-19T14:00:27-05:00
New Revision: f613e6d19d293d4eff9885b1fb429162bc6700cd

URL: https://github.com/llvm/llvm-project/commit/f613e6d19d293d4eff9885b1fb429162bc6700cd
DIFF: https://github.com/llvm/llvm-project/commit/f613e6d19d293d4eff9885b1fb429162bc6700cd.diff

LOG: [OpenMP][libomp] Fix accidental removal of else for core attributes

Added: 
    

Modified: 
    openmp/runtime/src/kmp_settings.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp_settings.cpp b/openmp/runtime/src/kmp_settings.cpp
index c003294876bb5..49b23a866a583 100644
--- a/openmp/runtime/src/kmp_settings.cpp
+++ b/openmp/runtime/src/kmp_settings.cpp
@@ -5022,7 +5022,7 @@ static void __kmp_stg_parse_hw_subset(char const *name, char const *value,
           attr.set_core_type(KMP_HW_CORE_TYPE_CORE);
         } else if (__kmp_str_match("intel_atom", -1, attr_ptr + 1)) {
           attr.set_core_type(KMP_HW_CORE_TYPE_ATOM);
-        }
+        } else
 #endif
         if (__kmp_str_match("eff", 3, attr_ptr + 1)) {
           const char *number = attr_ptr + 1;


        


More information about the Openmp-commits mailing list