From 317f7d4da94e2cc29c8ca320139459e9be77193b Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Sat, 31 Jan 2026 09:21:32 +0000 Subject: [PATCH] =?UTF-8?q?[perf]=20Replace=20copy-assign=20by=20move-assi?= =?UTF-8?q?gn=20in=20llvm/lib/DWARFCFIChecker=E2=80=A6=20(#178174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and llvm/lib/DebugInfo/* --- llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp | 2 +- llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp b/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp index 4acc064dbc21..3e0e031bbe71 100644 --- a/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp +++ b/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp @@ -55,7 +55,7 @@ void DWARFCFIState::update(const MCCFIInstruction &Directive) { return; } - Row = NewRow; + Row = std::move(NewRow); IsInitiated = true; } diff --git a/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp index 244f4855700b..ed3207717e7a 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp @@ -22,7 +22,7 @@ DebugStringTableSubsectionRef::DebugStringTableSubsectionRef() : DebugSubsectionRef(DebugSubsectionKind::StringTable) {} Error DebugStringTableSubsectionRef::initialize(BinaryStreamRef Contents) { - Stream = Contents; + Stream = std::move(Contents); return Error::success(); }