diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp index 4f7c99a6d2b84..c770d1c60718c 100644 --- a/flang/lib/Lower/OpenMP.cpp +++ b/flang/lib/Lower/OpenMP.cpp @@ -290,7 +290,7 @@ void DataSharingProcessor::collectSymbolsForPrivatization() { TODO(converter.getCurrentLocation(), "Collapse clause with lastprivate"); } -bool DataSharingProcessor ::needBarrier() { +bool DataSharingProcessor::needBarrier() { for (const Fortran::semantics::Symbol *sym : privatizedSymbols) { if (sym->test(Fortran::semantics::Symbol::Flag::OmpFirstPrivate) && sym->test(Fortran::semantics::Symbol::Flag::OmpLastPrivate)) @@ -299,7 +299,7 @@ bool DataSharingProcessor ::needBarrier() { return false; } -void DataSharingProcessor ::insertBarrier() { +void DataSharingProcessor::insertBarrier() { // Emit implicit barrier to synchronize threads and avoid data races on // initialization of firstprivate variables and post-update of lastprivate // variables.