[perf] Replace copy-assign by move-assign in llvm/lib/DWARFCFIChecker… (#178174)

… and llvm/lib/DebugInfo/*
This commit is contained in:
serge-sans-paille 2026-01-31 09:21:32 +00:00 committed by GitHub
parent 2b873aa9b2
commit 317f7d4da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ void DWARFCFIState::update(const MCCFIInstruction &Directive) {
return;
}
Row = NewRow;
Row = std::move(NewRow);
IsInitiated = true;
}

View File

@ -22,7 +22,7 @@ DebugStringTableSubsectionRef::DebugStringTableSubsectionRef()
: DebugSubsectionRef(DebugSubsectionKind::StringTable) {}
Error DebugStringTableSubsectionRef::initialize(BinaryStreamRef Contents) {
Stream = Contents;
Stream = std::move(Contents);
return Error::success();
}