Skip to content

Commit 3c4ec68

Browse files
committed
[clang][serialization] Allow special types to be empty
1 parent 136e484 commit 3c4ec68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,6 +3522,9 @@ llvm::Error ASTReader::ReadASTBlock(ModuleFile &F,
35223522
break;
35233523
}
35243524

3525+
if (Record.empty())
3526+
break;
3527+
35253528
if (SpecialTypes.size() != Record.size())
35263529
return llvm::createStringError(std::errc::illegal_byte_sequence,
35273530
"invalid special-types record");

0 commit comments

Comments
 (0)