Skip to content

Commit f9735be

Browse files
committed
Apply clang-tidy fixes for performance-unnecessary-value-param in ControlFlowInterfaces.cpp (NFC)
1 parent 5f7c385 commit f9735be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlir/lib/Interfaces/ControlFlowInterfaces.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include <utility>
10+
911
#include "mlir/Interfaces/ControlFlowInterfaces.h"
1012
#include "mlir/IR/BuiltinTypes.h"
1113
#include "llvm/ADT/SmallPtrSet.h"
@@ -19,7 +21,8 @@ using namespace mlir;
1921
#include "mlir/Interfaces/ControlFlowInterfaces.cpp.inc"
2022

2123
SuccessorOperands::SuccessorOperands(MutableOperandRange forwardedOperands)
22-
: producedOperandCount(0), forwardedOperands(forwardedOperands) {}
24+
: producedOperandCount(0), forwardedOperands(std::move(forwardedOperands)) {
25+
}
2326

2427
SuccessorOperands::SuccessorOperands(unsigned int producedOperandCount,
2528
MutableOperandRange forwardedOperands)

0 commit comments

Comments
 (0)