[Mlir-commits] [mlir] f9735be - Apply clang-tidy fixes for performance-unnecessary-value-param in ControlFlowInterfaces.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Apr 19 10:21:13 PDT 2022
Author: Mehdi Amini
Date: 2022-04-19T17:20:57Z
New Revision: f9735be7e2bc8ad79072cf009f15f387976cdfdb
URL: https://github.com/llvm/llvm-project/commit/f9735be7e2bc8ad79072cf009f15f387976cdfdb
DIFF: https://github.com/llvm/llvm-project/commit/f9735be7e2bc8ad79072cf009f15f387976cdfdb.diff
LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in ControlFlowInterfaces.cpp (NFC)
Added:
Modified:
mlir/lib/Interfaces/ControlFlowInterfaces.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
index d17e2dfa26627..a8068b482e766 100644
--- a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
+++ b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include <utility>
+
#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)
More information about the Mlir-commits
mailing list