summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-08-02 21:56:37 +0000
committerRui Ueyama <ruiu@google.com>2016-08-02 21:56:37 +0000
commit4ee7f3c9aa164caeefc1e4ed7167151558097da1 (patch)
tree7f6e0c9570f4d92b86439822f5bb7a2d0fb2ba04 /llvm/lib/DebugInfo
parent824d347d2d3ffd04244bb5718f109436c231a20e (diff)
downloadbcm5719-llvm-4ee7f3c9aa164caeefc1e4ed7167151558097da1.tar.gz
bcm5719-llvm-4ee7f3c9aa164caeefc1e4ed7167151558097da1.zip
PDB: Mark extended file pages as free by default.
BitVector::extend initializes extended bits as true by default. That is not desirable because new pages should be initially free. Differential Revision: https://reviews.llvm.org/D23048 llvm-svn: 277529
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/MSF/MSFBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp b/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
index 62960b67db2..22195a8ec29 100644
--- a/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
+++ b/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
@@ -53,7 +53,7 @@ Error MSFBuilder::setBlockMapAddr(uint32_t Addr) {
if (!IsGrowable)
return make_error<MSFError>(msf_error_code::insufficient_buffer,
"Cannot grow the number of blocks");
- FreeBlocks.resize(Addr + 1);
+ FreeBlocks.resize(Addr + 1, true);
}
if (!isBlockFree(Addr))
OpenPOWER on IntegriCloud