diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:24 +0000 |
commit | 82de7d323d1d03764d3595e9d2d903437e9022f2 (patch) | |
tree | 7595c775ff1870e6961cec2801b5b1c24902ed99 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | cfeacf56f03e5ce8bfb32537d64935b2f58e19ee (diff) | |
download | bcm5719-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/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index c95077718aa..c73db0d7e2e 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -42,6 +42,7 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetSubtargetInfo.h" #include <memory> +#include <utility> using namespace llvm; @@ -84,7 +85,7 @@ class UserValueScopes { SmallPtrSet<const MachineBasicBlock *, 4> LBlocks; public: - UserValueScopes(DebugLoc D, LexicalScopes &L) : DL(D), LS(L) {} + UserValueScopes(DebugLoc D, LexicalScopes &L) : DL(std::move(D)), LS(L) {} /// dominates - Return true if current scope dominates at least one machine /// instruction in a given machine basic block. @@ -141,8 +142,8 @@ public: /// UserValue - Create a new UserValue. UserValue(const MDNode *var, const MDNode *expr, unsigned o, bool i, DebugLoc L, LocMap::Allocator &alloc) - : Variable(var), Expression(expr), offset(o), IsIndirect(i), dl(L), - leader(this), next(nullptr), locInts(alloc) {} + : Variable(var), Expression(expr), offset(o), IsIndirect(i), + dl(std::move(L)), leader(this), next(nullptr), locInts(alloc) {} /// getLeader - Get the leader of this value's equivalence class. UserValue *getLeader() { |