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(); }