summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:24 +0000
commit82de7d323d1d03764d3595e9d2d903437e9022f2 (patch)
tree7595c775ff1870e6961cec2801b5b1c24902ed99 /llvm/lib/CodeGen/IfConversion.cpp
parentcfeacf56f03e5ce8bfb32537d64935b2f58e19ee (diff)
downloadbcm5719-llvm-82de7d323d1d03764d3595e9d2d903437e9022f2.tar.gz
bcm5719-llvm-82de7d323d1d03764d3595e9d2d903437e9022f2.zip
Apply clang-tidy's misc-move-constructor-init throughout LLVM.
No functionality change intended, maybe a tiny performance improvement. llvm-svn: 270997
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index 319c4f5b995..c2586b5bf8c 100644
--- a/llvm/lib/CodeGen/IfConversion.cpp
+++ b/llvm/lib/CodeGen/IfConversion.cpp
@@ -34,6 +34,7 @@
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
#include <algorithm>
+#include <utility>
using namespace llvm;
@@ -177,7 +178,7 @@ namespace {
public:
static char ID;
IfConverter(std::function<bool(const Function &)> Ftor = nullptr)
- : MachineFunctionPass(ID), FnNum(-1), PredicateFtor(Ftor) {
+ : MachineFunctionPass(ID), FnNum(-1), PredicateFtor(std::move(Ftor)) {
initializeIfConverterPass(*PassRegistry::getPassRegistry());
}
OpenPOWER on IntegriCloud