summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-02-07 12:28:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-02-07 12:28:15 +0000
commita9591b5880261dd0d379ab09672991d8db12c66c (patch)
tree69f027bcfefc2a0a59929a37bb867362479de9db /llvm/lib/CodeGen/MachineInstr.cpp
parent5614ea9aae25fc763d184ee4b940eac27f5ec3a7 (diff)
downloadbcm5719-llvm-a9591b5880261dd0d379ab09672991d8db12c66c.tar.gz
bcm5719-llvm-a9591b5880261dd0d379ab09672991d8db12c66c.zip
Move DebugLocs around instead of copying.
llvm-svn: 228491
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index f863bb8197e..0514eb6da72 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -595,10 +595,10 @@ void MachineInstr::addImplicitDefUseOperands(MachineFunction &MF) {
/// implicit operands. It reserves space for the number of operands specified by
/// the MCInstrDesc.
MachineInstr::MachineInstr(MachineFunction &MF, const MCInstrDesc &tid,
- const DebugLoc dl, bool NoImp)
- : MCID(&tid), Parent(nullptr), Operands(nullptr), NumOperands(0),
- Flags(0), AsmPrinterFlags(0),
- NumMemRefs(0), MemRefs(nullptr), debugLoc(dl) {
+ DebugLoc dl, bool NoImp)
+ : MCID(&tid), Parent(nullptr), Operands(nullptr), NumOperands(0), Flags(0),
+ AsmPrinterFlags(0), NumMemRefs(0), MemRefs(nullptr),
+ debugLoc(std::move(dl)) {
assert(debugLoc.hasTrivialDestructor() && "Expected trivial destructor");
// Reserve space for the expected number of operands.
OpenPOWER on IntegriCloud