[Openmp-commits] [openmp] [OpenMP] Remove dead code of checking int > INT_MAX (PR #83305)

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Mar 11 08:26:46 PDT 2024


================
@@ -4988,9 +4985,6 @@ static void __kmp_stg_parse_adaptive_lock_props(const char *name,
       if (num < 0) { // The number of retries should be >= 0
         msg = KMP_I18N_STR(ValueTooSmall);
         num = 1;
-      } else if (num > KMP_INT_MAX) {
----------------
jpeyton52 wrote:

Good point! I'll follow up with removing `KMP_INT_MAX`. It looks like `KMP_INT_MIN` is already unused as well so both can be removed.

https://github.com/llvm/llvm-project/pull/83305


More information about the Openmp-commits mailing list