Open Quuxplusone opened 5 years ago
It was already fixed.
_This bug has been marked as a duplicate of bug 43175_
The reproducer I reported here still reproduces the bug for me at fbaf835c5c51.
(In reply to Joel E. Denny from comment #2)
> The reproducer I reported here still reproduces the bug for me at
> fbaf835c5c51.
Oops, marked the wrong bug as a duplicate, thanks for reopening.
Clang implements
shared(n)
onomp target teams
as firstprivate instead of shared. For example, n is not shared in the following example:However, if I split the
target teams
directive into two directives, I see results indicating n is shared:The LLVM IR shows that n is passed to the teams by value in the first case and by pointer in the second.
This bugzilla was suggested at:
https://reviews.llvm.org/D56113#1345047