[PDB] Remove a couple asserts that are no longer valid now that C13Builders does not use unique_ptr.

These asserts used to check that unique_ptr was not null.

This fixes failures from 7af4bb1641
This commit is contained in:
Craig Topper 2020-05-02 17:28:58 -07:00
parent 7af4bb1641
commit 7867f4c15f
1 changed files with 0 additions and 2 deletions

View File

@ -89,7 +89,6 @@ void DbiModuleDescriptorBuilder::addSourceFile(StringRef Path) {
uint32_t DbiModuleDescriptorBuilder::calculateC13DebugInfoSize() const {
uint32_t Result = 0;
for (const auto &Builder : C13Builders) {
assert(Builder && "Empty C13 Fragment Builder!");
Result += Builder.calculateSerializedLength();
}
return Result;
@ -163,7 +162,6 @@ Error DbiModuleDescriptorBuilder::commit(BinaryStreamWriter &ModiWriter,
"Invalid debug section alignment!");
// TODO: Write C11 Line data
for (const auto &Builder : C13Builders) {
assert(Builder && "Empty C13 Fragment Builder!");
if (auto EC = Builder.commit(SymbolWriter, CodeViewContainer::Pdb))
return EC;
}