]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR34925: Fix getting thread_id lvalue for inlined regions
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Oct 2017 13:51:32 +0000 (13:51 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Oct 2017 13:51:32 +0000 (13:51 +0000)
commit01107d3d1fa98ec9ec5f37a2e2138b9469aeb931
treed3995ae403335626a8be08ab9c61c463e314f3c9
parent4f7fc2550d0c5fc3e80ccb3cd99c25c555770654
[OPENMP] Fix PR34925: Fix getting thread_id lvalue for inlined regions
in C.

If we try to get the lvalue for thread_id variables in inlined regions,
we did not use the correct version of function. Fixed this bug by adding
overrided version of the function getThreadIDVariableLValue for inlined
regions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315578 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/task_codegen.c [new file with mode: 0644]