]> granicus.if.org Git - clang/commit
[OPENMP] Fix lifetime of the loop counters.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 7 Mar 2018 18:17:06 +0000 (18:17 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 7 Mar 2018 18:17:06 +0000 (18:17 +0000)
commiteea47794b2e8ab41dc2146663ab3a3d3aea7dcef
tree4068f5c6fb9d263b9dd8b9b85ab1aded0934b71d
parentb1eebfc1fceba19ade77aaa3666a2c5f7be88145
[OPENMP] Fix lifetime of the loop counters.

We may emit incorrect lifetime info during codegen for loop counters in
OpenMP constructs because of automatic scope cleanup when we needed
temporarily locations for private loop counters.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
test/OpenMP/for_codegen.cpp