From 6825920b1816e8493804fd82e44c0af387abce53 Mon Sep 17 00:00:00 2001 From: scentini Date: Fri, 3 Apr 2020 09:37:12 +0200 Subject: [PATCH] Silence -Wpessimizing-move warning --- llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index b3f7c6dab7e5b..2150df411f421 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -319,7 +319,7 @@ DWARFContext::parseMacroOrMacinfo(MacroSecType SectionType) { break; } } - return std::move(Macro); + return Macro; } static void dumpLoclistsSection(raw_ostream &OS, DIDumpOptions DumpOpts, @@ -1975,4 +1975,3 @@ uint8_t DWARFContext::getCUAddrSize() { unit_iterator_range CUs = compile_units(); return CUs.empty() ? 0 : (*CUs.begin())->getAddressByteSize(); } -