Skip to content

Commit 4194e8d

Browse files
authored
[flang][cuda][NFC] Fix grammar in CanCUDASymbolHasSave function name (#109234)
1 parent 5e1a54b commit 4194e8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flang/include/flang/Evaluate/tools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ bool CheckForCoindexedObject(parser::ContextualMessages &,
12591259
const std::optional<ActualArgument> &, const std::string &procName,
12601260
const std::string &argName);
12611261

1262-
inline bool CanCUDASymbolHasSave(const Symbol &sym) {
1262+
inline bool CanCUDASymbolHaveSaveAttr(const Symbol &sym) {
12631263
if (const auto *details =
12641264
sym.GetUltimate().detailsIf<semantics::ObjectEntityDetails>()) {
12651265
if (details->cudaDataAttr() &&

flang/lib/Evaluate/tools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ bool IsSaved(const Symbol &original) {
17001700
(features.IsEnabled(
17011701
common::LanguageFeature::SaveBigMainProgramVariables) &&
17021702
symbol.size() > 32)) &&
1703-
Fortran::evaluate::CanCUDASymbolHasSave(symbol)) {
1703+
Fortran::evaluate::CanCUDASymbolHaveSaveAttr(symbol)) {
17041704
// With SaveBigMainProgramVariables, keeping all unsaved main program
17051705
// variables of 32 bytes or less on the stack allows keeping numerical and
17061706
// logical scalars, small scalar characters or derived, small arrays, and

0 commit comments

Comments
 (0)