]> granicus.if.org Git - clang/commit
[OPENMP] Fix for LCV in simd directives in explicit clauses.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Apr 2016 03:56:56 +0000 (03:56 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Apr 2016 03:56:56 +0000 (03:56 +0000)
commit23e8dcbd81759478c5856aedf000867f30c1753b
treee10b51cdcc264c319b78af5036239d85636a8c71
parent428050ef9e4b338413460e9fcb63be106a153e6c
[OPENMP] Fix for LCV in simd directives in explicit clauses.

If loop control variable for simd-based directives is explicitly marked
as linear/lastprivate in clauses, codegen for such construct would
crash. Patch fixes this problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267101 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
lib/Sema/SemaOpenMP.cpp
test/OpenMP/for_lastprivate_codegen.cpp
test/OpenMP/for_simd_codegen.cpp
test/OpenMP/loops_explicit_clauses_codegen.cpp [new file with mode: 0644]
test/OpenMP/simd_codegen.cpp