]> granicus.if.org Git - clang/commit
[OPENMP]Mark the loop as started when initialized.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 19 Dec 2018 18:16:37 +0000 (18:16 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 19 Dec 2018 18:16:37 +0000 (18:16 +0000)
commit842e99f500dec2f96beb4a9b69cf5ce156578eef
treed2bcc961e9954ce1d05ccc1ad818593600f38fbc
parent30b70311b7df6275c2bb89844bae45e37977dca2
[OPENMP]Mark the loop as started when initialized.

Need to mark the loop as started when the initialization statement is
found. It is required to prevent possible incorrect loop iteraton
variable detection during template instantiation and fix the compiler
crash during the codegen.

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