Skip to content

Commit 936e038

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in OpenMPToLLVMIRTranslation.cpp (NFC)
1 parent f44f83a commit 936e038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class LinearClauseProcessor {
246246

247247
// Rewrite all uses of the original variable in `BBName`
248248
// with the linear variable in-place
249-
void rewriteInPlace(llvm::IRBuilderBase &builder, std::string BBName,
249+
void rewriteInPlace(llvm::IRBuilderBase &builder, const std::string &BBName,
250250
size_t varIndex) {
251251
llvm::SmallVector<llvm::User *> users;
252252
for (llvm::User *user : linearOrigVal[varIndex]->users())

0 commit comments

Comments
 (0)