]> granicus.if.org Git - clang/commit
[OPENMP]Fix crash for the ordered(n) clause.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 14 Mar 2019 20:36:00 +0000 (20:36 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 14 Mar 2019 20:36:00 +0000 (20:36 +0000)
commitbb8bb54e3357f85510e22cebf5cb21e89a57ffb1
treeee5c0003594e38a19b84d4c7f46ddd78363e732b
parentd8fe413610338c120a5297733d8b8459d529431b
[OPENMP]Fix crash for the ordered(n) clause.

If the doacross lop construct is used and the loop counter is declare
outside of the loop, the compiler might crash trying to get the address
of the loop counter. Patch fixes this problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356198 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/ordered_doacross_codegen.cpp