commit 20d0d6527c36005a9664f7ac9eb50f1071d5670c
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Mon Jul 27 09:12:15 2020 +0200
fortran/openmp.c - silence static analyzer warning
gcc/fortran/ChangeLog:
* openmp.c (gfc_resolve_omp_directive): Remove NULL check
for clauses in EXEC_OMP_CRITICAL as it no longer can be NULL.
@@ -6560,8 +6560,7 @@ gfc_resolve_omp_directive (gfc_code *code, gfc_namespace *ns ATTRIBUTE_UNUSED)
resolve_omp_atomic (code);
break;
case EXEC_OMP_CRITICAL:
- if (code->ext.omp_clauses)
- resolve_omp_clauses (code, code->ext.omp_clauses, NULL);
+ resolve_omp_clauses (code, code->ext.omp_clauses, NULL);
if (!code->ext.omp_clauses->critical_name
&& code->ext.omp_clauses->hint
&& code->ext.omp_clauses->hint->ts.type == BT_INTEGER