diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index f6d12d46cfc071..9dd01799bd412a 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -6032,11 +6032,6 @@ const Expr *CGOpenMPRuntime::getNumTeamsExprForTargetDirective( MinTeamsVal = MaxTeamsVal = 0; return nullptr; } - if (isOpenMPParallelDirective(NestedDir->getDirectiveKind()) || - isOpenMPSimdDirective(NestedDir->getDirectiveKind())) { - MinTeamsVal = MaxTeamsVal = 1; - return nullptr; - } MinTeamsVal = MaxTeamsVal = 1; return nullptr; }