Fix broken reading of member pointer from PCH.

llvm-svn: 107472
This commit is contained in:
Argyrios Kyrtzidis 2010-07-02 11:55:15 +00:00
parent 45a83f9acc
commit ee776bcb7a
1 changed files with 1 additions and 1 deletions

View File

@ -2015,7 +2015,7 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) {
}
case pch::TYPE_MEMBER_POINTER: {
if (Record.size() != 1) {
if (Record.size() != 2) {
Error("Incorrect encoding of member pointer type");
return QualType();
}