Skip to content

Commit 8a7fa1e

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-move-const-arg in Location.cpp (NFC)
1 parent 392d03f commit 8a7fa1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/IR/Location.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ struct FileLineColRangeAttrStorage final
5252
FileLineColRangeAttrStorage::totalSizeToAlloc<unsigned>(locEnc - 1);
5353
auto *rawMem =
5454
allocator.allocate(byteSize, alignof(FileLineColRangeAttrStorage));
55-
auto *result = ::new (rawMem) FileLineColRangeAttrStorage(
56-
std::move(std::get<0>(tblgenKey)), locEnc - 1);
55+
auto *result = ::new (rawMem)
56+
FileLineColRangeAttrStorage(std::get<0>(tblgenKey), locEnc - 1);
5757
if (numInArray > 0) {
5858
ArrayRef<unsigned> elements = std::get<1>(tblgenKey);
5959
result->startLine = elements[0];

0 commit comments

Comments
 (0)