diff options
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 157e21d069b..9bcb5929ed0 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -329,15 +329,9 @@ void OMPClauseProfiler::VisitOMPClauseList(T *Node) { void OMPClauseProfiler::VisitOMPPrivateClause(const OMPPrivateClause *C) { VisitOMPClauseList(C); } -void -OMPClauseProfiler::VisitOMPFirstprivateClause(const OMPFirstprivateClause *C) { +void OMPClauseProfiler::VisitOMPFirstprivateClause( + const OMPFirstprivateClause *C) { VisitOMPClauseList(C); - for (auto *E : C->private_copies()) { - Profiler->VisitStmt(E); - } - for (auto *E : C->inits()) { - Profiler->VisitStmt(E); - } } void OMPClauseProfiler::VisitOMPLastprivateClause(const OMPLastprivateClause *C) { |