[llvm] r277529 - PDB: Mark extended file pages as free by default.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 14:56:38 PDT 2016
Author: ruiu
Date: Tue Aug 2 16:56:37 2016
New Revision: 277529
URL: http://llvm.org/viewvc/llvm-project?rev=277529&view=rev
Log:
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
Modified:
llvm/trunk/lib/DebugInfo/MSF/MSFBuilder.cpp
Modified: llvm/trunk/lib/DebugInfo/MSF/MSFBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/MSF/MSFBuilder.cpp?rev=277529&r1=277528&r2=277529&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/MSF/MSFBuilder.cpp (original)
+++ llvm/trunk/lib/DebugInfo/MSF/MSFBuilder.cpp Tue Aug 2 16:56:37 2016
@@ -53,7 +53,7 @@ Error MSFBuilder::setBlockMapAddr(uint32
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))
More information about the llvm-commits
mailing list