[llvm] 6825920 - Silence -Wpessimizing-move warning
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 00:38:13 PDT 2020
Author: scentini
Date: 2020-04-03T09:37:39+02:00
New Revision: 6825920b1816e8493804fd82e44c0af387abce53
URL: https://github.com/llvm/llvm-project/commit/6825920b1816e8493804fd82e44c0af387abce53
DIFF: https://github.com/llvm/llvm-project/commit/6825920b1816e8493804fd82e44c0af387abce53.diff
LOG: Silence -Wpessimizing-move warning
Added:
Modified:
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index b3f7c6dab7e5..2150df411f42 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();
}
-
More information about the llvm-commits
mailing list