From 4d4624c20cd970ec4f4e5ecd9d90e51443e32c0e Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 20 Jul 2017 16:47:47 +0000 Subject: [OPENMP] Fix DSA processing for member declaration. If the member declaration is captured in the OMPCapturedExprDecl, we may loose data-sharing attribute info for this declaration. Patch fixes this bug. llvm-svn: 308629 --- clang/test/OpenMP/parallel_sections_lastprivate_messages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/OpenMP/parallel_sections_lastprivate_messages.cpp') diff --git a/clang/test/OpenMP/parallel_sections_lastprivate_messages.cpp b/clang/test/OpenMP/parallel_sections_lastprivate_messages.cpp index af3c5e2a575..eccbfc5e7e0 100644 --- a/clang/test/OpenMP/parallel_sections_lastprivate_messages.cpp +++ b/clang/test/OpenMP/parallel_sections_lastprivate_messages.cpp @@ -17,9 +17,9 @@ public: S2(S2 &s2) : a(s2.a) {} const S2 &operator=(const S2 &) const; static float S2s; // expected-note {{static data member is predetermined as shared}} - static const float S2sc; + static const float S2sc; // expected-note {{static data member is predetermined as shared}} }; -const float S2::S2sc = 0; // expected-note {{static data member is predetermined as shared}} +const float S2::S2sc = 0; const S2 b; const S2 ba[5]; class S3 { -- cgit v1.2.3