[OPENMP]Fix for PR43349: Crash for privatized loop bound.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 18 Sep 2019 19:24:07 +0000 (19:24 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 18 Sep 2019 19:24:07 +0000 (19:24 +0000)
commitf71939c0995191bea1adca754e9b7e17f9c1572a
treead317c81cede7937082b13d21171aebbc831548e
parent164dbd386d00fe62991d3ab4e7b25b599f3fb7dc
[OPENMP]Fix for PR43349: Crash for privatized loop bound.

If the variable, used in the loop boundaries, is not captured in the
construct, this variable must be considered as undefined if it was
privatized.

llvm-svn: 372252
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/parallel_for_codegen.cpp