================ @@ -4997,6 +4997,19 @@ ASTReader::ASTReadResult ASTReader::readUnhashedControlBlockImpl( F->SearchPathUsage[I] = true; break; } + case VFS_USAGE: { + if (!F) + break; + unsigned Count = Record[0]; + const char *Byte = Blob.data(); + F->VFSUsage = llvm::BitVector(Count, false); + for (unsigned I = 0; I < Count; ++Byte) + for (unsigned Bit = 0; Bit < 8 && I < Count; ++Bit, ++I) + if (*Byte & (1 << Bit)) + F->VFSUsage[I] = true; ---------------- benlangmuir wrote:
Probably worth hoisting this read into its own function since we seem to be accumulating bit vectors. https://github.com/llvm/llvm-project/pull/73734 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits