Skip to content

Commit

Permalink
Silence -Wpessimizing-move warning
Browse files Browse the repository at this point in the history
  • Loading branch information
scentini committed Apr 3, 2020
1 parent 5b519cf commit 6825920
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
Expand Up @@ -319,7 +319,7 @@ DWARFContext::parseMacroOrMacinfo(MacroSecType SectionType) {
break;
}
}
return std::move(Macro);
return Macro;
}

static void dumpLoclistsSection(raw_ostream &OS, DIDumpOptions DumpOpts,
Expand Down Expand Up @@ -1975,4 +1975,3 @@ uint8_t DWARFContext::getCUAddrSize() {
unit_iterator_range CUs = compile_units();
return CUs.empty() ? 0 : (*CUs.begin())->getAddressByteSize();
}

0 comments on commit 6825920

Please sign in to comment.