[flang][runtime] Fix CUDA flang-rt build breakage (#135220)

I used "std::nullopt" instead of the correct "Fortran::common::nullopt"
in a recent patch, and you can get away with that only for CPU builds.
Fix.
This commit is contained in:
Peter Klausler
2025-04-10 10:39:27 -07:00
committed by GitHub
parent f53eb88d25
commit cd56666d7b

View File

@@ -156,7 +156,7 @@ public:
if (at_ && at_ < limit_) {
return *at_;
} else {
return std::nullopt;
return Fortran::common::nullopt;
}
}
RT_API_ATTRS void NextRecord(IoStatementState &io) {
@@ -200,7 +200,7 @@ public:
byteCount = ch ? 1 : 0;
return ch;
} else if (!field->MustUseSlowPath()) {
return std::nullopt;
return Fortran::common::nullopt;
}
}
return GetCurrentCharSlow(byteCount);