[llvm] r375357 - Fix minor warning in DWARFVerifier.
Zinovy Nis via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 20 00:55:50 PDT 2019
Author: zinovy.nis
Date: Sun Oct 20 00:55:50 2019
New Revision: 375357
URL: http://llvm.org/viewvc/llvm-project?rev=375357&view=rev
Log:
Fix minor warning in DWARFVerifier.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp?rev=375357&r1=375356&r2=375357&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp Sun Oct 20 00:55:50 2019
@@ -34,11 +34,11 @@ DWARFVerifier::DieRangeInfo::insert(cons
if (Pos != End) {
if (Pos->intersects(R))
- return Pos;
+ return std::move(Pos);
if (Pos != Begin) {
auto Iter = Pos - 1;
if (Iter->intersects(R))
- return Iter;
+ return std::move(Iter);
}
}
More information about the llvm-commits
mailing list