summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-20 13:00:09 +0000
committerFangrui Song <maskray@google.com>2019-04-20 13:00:09 +0000
commitdd0e83355583898d19357abc5f17a9a94f057d74 (patch)
treed6e4109fabf1483f9e895cb93cdce4da9df89462 /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
parentd89de3f7f4e54dc56e1d2c41435dc4ec970914d6 (diff)
downloadbcm5719-llvm-dd0e83355583898d19357abc5f17a9a94f057d74.tar.gz
bcm5719-llvm-dd0e83355583898d19357abc5f17a9a94f057d74.zip
[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
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
-rw-r--r--llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
index e6e0de05f5d..5d453def7b4 100644
--- a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
@@ -313,9 +313,8 @@ uint64_t SymbolizableObjectFile::getModuleSectionIndexForAddress(
continue;
if (Address >= Sec.getAddress() &&
- Address <= Sec.getAddress() + Sec.getSize()) {
+ Address < Sec.getAddress() + Sec.getSize())
return Sec.getIndex();
- }
}
return object::SectionedAddress::UndefSection;
OpenPOWER on IntegriCloud