From f9735be7e2bc8ad79072cf009f15f387976cdfdb Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sat, 16 Apr 2022 08:06:25 +0000 Subject: [PATCH] Apply clang-tidy fixes for performance-unnecessary-value-param in ControlFlowInterfaces.cpp (NFC) --- mlir/lib/Interfaces/ControlFlowInterfaces.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp index d17e2dfa2662..a8068b482e76 100644 --- a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp +++ b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp @@ -6,6 +6,8 @@ // //===----------------------------------------------------------------------===// +#include + #include "mlir/Interfaces/ControlFlowInterfaces.h" #include "mlir/IR/BuiltinTypes.h" #include "llvm/ADT/SmallPtrSet.h" @@ -19,7 +21,8 @@ using namespace mlir; #include "mlir/Interfaces/ControlFlowInterfaces.cpp.inc" SuccessorOperands::SuccessorOperands(MutableOperandRange forwardedOperands) - : producedOperandCount(0), forwardedOperands(forwardedOperands) {} + : producedOperandCount(0), forwardedOperands(std::move(forwardedOperands)) { +} SuccessorOperands::SuccessorOperands(unsigned int producedOperandCount, MutableOperandRange forwardedOperands)