[PATCH] D53827: [OpenMP][NFC] Fix condition.

2018-10-29 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171558. gtbercea added a comment. Add tests. Repository: rC Clang https://reviews.llvm.org/D53827 Files: lib/Sema/SemaOpenMP.cpp test/OpenMP/distribute_parallel_for_codegen.cpp test/OpenMP/distribute_parallel_for_simd_codegen.cpp test/OpenMP/n

[PATCH] D53827: [OpenMP][NFC] Fix condition.

2018-10-29 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. Herald added subscribers: cfe-commits, guansong. gtbercea added reviewers: ABataev, caomhin. Iteration variable must be strictly less than the number of iterations. Repository: rC Clang https://reviews.llvm.org/D53827 Files: lib/Sema/SemaOpenMP.cpp Index: