Apply clang-tidy fixes for performance-unnecessary-value-param in MLIRGen.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-01-14 06:09:14 +00:00
parent 254302021b
commit 813156eaa9
6 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ private:
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
/// Helper conversion for a Toy AST location to an MLIR location.
mlir::Location loc(Location loc) {
mlir::Location loc(const Location &loc) {
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
loc.col);
}

View File

@ -92,7 +92,7 @@ private:
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
/// Helper conversion for a Toy AST location to an MLIR location.
mlir::Location loc(Location loc) {
mlir::Location loc(const Location &loc) {
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
loc.col);
}

View File

@ -92,7 +92,7 @@ private:
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
/// Helper conversion for a Toy AST location to an MLIR location.
mlir::Location loc(Location loc) {
mlir::Location loc(const Location &loc) {
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
loc.col);
}

View File

@ -92,7 +92,7 @@ private:
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
/// Helper conversion for a Toy AST location to an MLIR location.
mlir::Location loc(Location loc) {
mlir::Location loc(const Location &loc) {
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
loc.col);
}

View File

@ -92,7 +92,7 @@ private:
llvm::ScopedHashTable<StringRef, mlir::Value> symbolTable;
/// Helper conversion for a Toy AST location to an MLIR location.
mlir::Location loc(Location loc) {
mlir::Location loc(const Location &loc) {
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
loc.col);
}

View File

@ -112,7 +112,7 @@ private:
llvm::StringMap<std::pair<mlir::Type, StructAST *>> structMap;
/// Helper conversion for a Toy AST location to an MLIR location.
mlir::Location loc(Location loc) {
mlir::Location loc(const Location &loc) {
return mlir::FileLineColLoc::get(builder.getStringAttr(*loc.file), loc.line,
loc.col);
}