From a45fd8780c2857c9a17633f90f91a88af4ec678b Mon Sep 17 00:00:00 2001 From: Philippe Virouleau <philippe.44@gmail.com> Date: Wed, 26 Oct 2016 10:41:49 +0200 Subject: [PATCH] Visit member's base when checking DSA. --- lib/Sema/SemaOpenMP.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index a27dae97b49..2346c56bd32 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -1550,6 +1550,8 @@ public: !Stack->isLoopControlVariable(FD).first) ImplicitFirstprivate.push_back(E); } + } else { + Visit(E->getBase()); } } void VisitOMPExecutableDirective(OMPExecutableDirective *S) { -- GitLab