[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)
commit5dff95c04de0d096563462530160fd5fc221fd8f
treeef34759729b05ec62a742bfc096fe72fafbd2df1
parent59479e7208c4be3ea9317763dad05b208f0ea135
[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.

llvm-svn: 267101
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/for_lastprivate_codegen.cpp
clang/test/OpenMP/for_simd_codegen.cpp
clang/test/OpenMP/loops_explicit_clauses_codegen.cpp [new file with mode: 0644]
clang/test/OpenMP/simd_codegen.cpp