[OPENMP]Fix PR48571: critical/master in outlined contexts cause crash.
authorAlexey Bataev <a.bataev@outlook.com>
Wed, 24 Mar 2021 16:24:24 +0000 (09:24 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Wed, 24 Mar 2021 17:15:24 +0000 (10:15 -0700)
commit7654bb6303d290b19cad29137be810e69a0bf917
tree059a9b6e790715e4b50ef0572c85c9f692d566ed
parent60e12a2279b63058b63cd186910ea23298e1b757
[OPENMP]Fix PR48571: critical/master in outlined contexts cause crash.

If emit inlined region for master/critical directives, no need to clear
lambda/block context data, otherwise the variables cannot be found and
it causes a crash at compile time.

Differential Revision: https://reviews.llvm.org/D99280
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/critical_codegen.cpp
clang/test/OpenMP/master_codegen.cpp