summaryrefslogtreecommitdiff
path: root/lib/VMCore/DebugInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/DebugInfo.cpp')
-rw-r--r--lib/VMCore/DebugInfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VMCore/DebugInfo.cpp b/lib/VMCore/DebugInfo.cpp
index 73eb92ee84..0b43cc0beb 100644
--- a/lib/VMCore/DebugInfo.cpp
+++ b/lib/VMCore/DebugInfo.cpp
@@ -1049,7 +1049,11 @@ void DIDescriptor::print(raw_ostream &OS) const {
}
void DISubrange::printInternal(raw_ostream &OS) const {
- OS << " [" << getLo() << ", " << getHi() << ']';
+ int64_t Count = getCount();
+ if (Count != -1)
+ OS << " [" << getLo() << ", " << Count - 1 << ']';
+ else
+ OS << " [unbound]";
}
void DIScope::printInternal(raw_ostream &OS) const {