Skip to content

Commit 446f239

Browse files
committed
[clang][serialization] Allow special types to be empty
1 parent dff2735 commit 446f239

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
@@ -3529,6 +3529,9 @@ llvm::Error ASTReader::ReadASTBlock(ModuleFile &F,
35293529
break;
35303530
}
35313531

3532+
if (Record.empty())
3533+
break;
3534+
35323535
if (SpecialTypes.size() != Record.size())
35333536
return llvm::createStringError(std::errc::illegal_byte_sequence,
35343537
"invalid special-types record");

0 commit comments

Comments
 (0)