[llvm-symbolizer] Fix section index at the end of a section
This is very minor issue. The returned section index is only used by
DWARFDebugLine as an llvm::upper_bound input and the use case shouldn't
cause any behavioral change.
llvm-svn: 358814
diff --git a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
index e6e0de0..5d453de 100644
--- a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
@@ -313,9 +313,8 @@
continue;
if (Address >= Sec.getAddress() &&
- Address <= Sec.getAddress() + Sec.getSize()) {
+ Address < Sec.getAddress() + Sec.getSize())
return Sec.getIndex();
- }
}
return object::SectionedAddress::UndefSection;