Skip to content

Commit 1b3e235

Browse files
committed
Replace std:string with llvm::StringRef
1 parent 1a0ddf7 commit 1b3e235

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flang/lib/Lower/OpenMP/ClauseProcessor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,9 +970,10 @@ void ClauseProcessor::processMapObjects(
970970
std::map<Object, OmpMapParentAndMemberData> &parentMemberIndices,
971971
llvm::SmallVectorImpl<mlir::Value> &mapVars,
972972
llvm::SmallVectorImpl<const semantics::Symbol *> &mapSyms,
973-
std::string mapperIdName) const {
973+
llvm::StringRef mapperIdNameRef) const {
974974
fir::FirOpBuilder &firOpBuilder = converter.getFirOpBuilder();
975975
mlir::FlatSymbolRefAttr mapperId;
976+
std::string mapperIdName = mapperIdNameRef.str();
976977

977978
for (const omp::Object &object : objects) {
978979
llvm::SmallVector<mlir::Value> bounds;

flang/lib/Lower/OpenMP/ClauseProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class ClauseProcessor {
176176
std::map<Object, OmpMapParentAndMemberData> &parentMemberIndices,
177177
llvm::SmallVectorImpl<mlir::Value> &mapVars,
178178
llvm::SmallVectorImpl<const semantics::Symbol *> &mapSyms,
179-
std::string mapperIdName = "") const;
179+
llvm::StringRef mapperIdNameRef = "") const;
180180

181181
lower::AbstractConverter &converter;
182182
semantics::SemanticsContext &semaCtx;

0 commit comments

Comments
 (0)