Skip to content

Commit ee30ea6

Browse files
committed
Complete comment
1 parent 664e223 commit ee30ea6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/lib/Lower/OpenACC.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,9 +3200,10 @@ genACCHostDataOp(Fortran::lower::AbstractConverter &converter,
32003200
} else if (const auto *useDevice =
32013201
std::get_if<Fortran::parser::AccClause::UseDevice>(
32023202
&clause.u)) {
3203-
// When CUDA Fotran is en
3203+
// When CUDA Fotran is enabled, extra symbolds are used in the host_data
3204+
// region. Look for them and bind their value with the symbol in the outer
3205+
// scope.
32043206
if (semanticsContext.IsEnabled(Fortran::common::LanguageFeature::CUDA)) {
3205-
32063207
const Fortran::parser::AccObjectList &objectList{useDevice->v};
32073208
for (const auto &accObject : objectList.v) {
32083209
Fortran::semantics::Symbol &symbol =

0 commit comments

Comments
 (0)