]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR35156: Get correct thread id with windows exceptions.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 2 Nov 2017 14:25:34 +0000 (14:25 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 2 Nov 2017 14:25:34 +0000 (14:25 +0000)
commite70ad5241cb2dd0fe883ffacdfa8a839fce108ce
treedb8cd0efb0b5b0e2ef08edf3fb4384c2253336d4
parent8148ea17f5b960f0cb6457b9e4906da119f3b1f8
[OPENMP] Fix PR35156: Get correct thread id with windows exceptions.

If the thread id is requested in windows mode within funclets, we may
generate incorrect function call that could lead to broken codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317208 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/critical_codegen.cpp
test/OpenMP/for_codegen.cpp
test/OpenMP/for_simd_codegen.cpp
test/OpenMP/master_codegen.cpp
test/OpenMP/openmp_win_codegen.cpp [new file with mode: 0644]
test/OpenMP/parallel_for_codegen.cpp
test/OpenMP/parallel_for_simd_codegen.cpp
test/OpenMP/parallel_sections_codegen.cpp
test/OpenMP/sections_codegen.cpp
test/OpenMP/single_codegen.cpp
test/OpenMP/taskgroup_codegen.cpp