[perf] Replace copy-assign by move-assign in llvm/lib/DWARFCFIChecker… (#178174)
… and llvm/lib/DebugInfo/*
This commit is contained in:
parent
2b873aa9b2
commit
317f7d4da9
@ -55,7 +55,7 @@ void DWARFCFIState::update(const MCCFIInstruction &Directive) {
|
||||
return;
|
||||
}
|
||||
|
||||
Row = NewRow;
|
||||
Row = std::move(NewRow);
|
||||
IsInitiated = true;
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ DebugStringTableSubsectionRef::DebugStringTableSubsectionRef()
|
||||
: DebugSubsectionRef(DebugSubsectionKind::StringTable) {}
|
||||
|
||||
Error DebugStringTableSubsectionRef::initialize(BinaryStreamRef Contents) {
|
||||
Stream = Contents;
|
||||
Stream = std::move(Contents);
|
||||
return Error::success();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user