Fix deserialization of PredefinedExpr in dependent context.

llvm-svn: 219561
This commit is contained in:
Alexey Bataev 2014-10-11 05:07:24 +00:00
parent 6392754839
commit 8d4fae3d8b
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ void ASTStmtReader::VisitPredefinedExpr(PredefinedExpr *E) {
VisitExpr(E);
E->setLocation(ReadSourceLocation(Record, Idx));
E->Type = (PredefinedExpr::IdentType)Record[Idx++];
E->FnName = cast<StringLiteral>(Reader.ReadSubExpr());
E->FnName = cast_or_null<StringLiteral>(Reader.ReadSubExpr());
}
void ASTStmtReader::VisitDeclRefExpr(DeclRefExpr *E) {