]> granicus.if.org Git - clang/commit
Merging r340181:
authorHans Wennborg <hans@hanshq.net>
Tue, 21 Aug 2018 22:41:40 +0000 (22:41 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 21 Aug 2018 22:41:40 +0000 (22:41 +0000)
commit0219d8b6f9b3574c5a4ddaff4390cbb6af0e03a4
treed4ca5876541aa059efdd43460badc24a494674af
parentd86f02265fac1d8baf8b0c3f3c152c64a1900cb9
Merging r340181:
------------------------------------------------------------------------
r340181 | abataev | 2018-08-20 18:00:22 +0200 (Mon, 20 Aug 2018) | 7 lines

[OPENMP][BLOCKS]Fix PR38923: reference to a global variable is captured
by a block.

Added checks for capturing of the variable in the block when trying to
emit correct address for the variable with the reference type. This
extra check allows correctly identify the variables that are not
captured in the block context.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_70@340352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGenCXX/block-byref.cpp [new file with mode: 0644]