]> granicus.if.org Git - clang/commit
[OPENMP] Drop type qualifiers from private variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 14 Jul 2015 10:32:29 +0000 (10:32 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 14 Jul 2015 10:32:29 +0000 (10:32 +0000)
commit928084c346a98e965bd0ef7b43462f80d96db813
tree0d8a5edb24eff40ec9f1b59014b973385b52b339
parent3f10ce5f9ba754148ecb7cf32b92af0ff60639b0
[OPENMP] Drop type qualifiers from private variables.

If the variable is marked as private in OpenMP construct, the reference to this variable should not keep type qualifiers for the original variable. Private copy is not volatile or constant, so we can use unqualified type for private copy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242133 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
test/OpenMP/for_firstprivate_codegen.cpp
test/OpenMP/for_lastprivate_codegen.cpp
test/OpenMP/for_private_codegen.cpp
test/OpenMP/for_reduction_codegen.cpp
test/OpenMP/parallel_firstprivate_codegen.cpp
test/OpenMP/parallel_private_codegen.cpp
test/OpenMP/parallel_reduction_codegen.cpp
test/OpenMP/sections_firstprivate_codegen.cpp
test/OpenMP/sections_lastprivate_codegen.cpp
test/OpenMP/sections_private_codegen.cpp
test/OpenMP/sections_reduction_codegen.cpp
test/OpenMP/single_firstprivate_codegen.cpp
test/OpenMP/single_private_codegen.cpp
test/OpenMP/task_firstprivate_codegen.cpp
test/OpenMP/task_private_codegen.cpp