[OpenMP][FIX] Do not adjust the level after the environment was popped
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 20 Oct 2021 15:37:50 +0000 (10:37 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 27 Oct 2021 23:22:33 +0000 (18:22 -0500)
commit5102c3c61e266b533619644bb8eb27cecd26bfca
treeda558ec1894b2ed33e2250edcb4a373000a6fb37
parentb16aadf0a79a2796c9ac68d1bfc8853ccf25c459
[OpenMP][FIX] Do not adjust the level after the environment was popped

Exiting a data environment will reset all values, it is wrong to adjust
them afterwards.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D112144
openmp/libomptarget/DeviceRTL/src/Parallelism.cpp