diff options
author | Eric Christopher <echristo@gmail.com> | 2013-05-06 21:19:44 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-05-06 21:19:44 +0000 |
commit | e305e03d6f71f70a7102f15ac5ff6fd93cf9e818 (patch) | |
tree | 6d7d21715dc06a6d975639b2201943f8c17a6c85 | |
parent | 5a0c366b1f0112de7d55346ab75e4aa7073a6a19 (diff) |
Hoist boundary condition out of loop header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181248 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/DebugInfo/DWARFContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index a47fe56fe4..9f521330c3 100644 --- a/lib/DebugInfo/DWARFContext.cpp +++ b/lib/DebugInfo/DWARFContext.cpp @@ -141,7 +141,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) { OS << "\n.debug_str_offsets.dwo contents:\n"; DataExtractor strOffsetExt(getStringOffsetDWOSection(), isLittleEndian(), 0); offset = 0; - while (offset < getStringOffsetDWOSection().size()) { + uint64_t size = getStringOffsetDWOSection().size(); + while (offset < size) { OS << format("0x%8.8x: ", offset); OS << format("%8.8x\n", strOffsetExt.getU32(&offset)); } |