Fix deserialization of PredefinedExpr in dependent context.
llvm-svn: 219561
This commit is contained in:
parent
6392754839
commit
8d4fae3d8b
|
@ -423,7 +423,7 @@ void ASTStmtReader::VisitPredefinedExpr(PredefinedExpr *E) {
|
||||||
VisitExpr(E);
|
VisitExpr(E);
|
||||||
E->setLocation(ReadSourceLocation(Record, Idx));
|
E->setLocation(ReadSourceLocation(Record, Idx));
|
||||||
E->Type = (PredefinedExpr::IdentType)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) {
|
void ASTStmtReader::VisitDeclRefExpr(DeclRefExpr *E) {
|
||||||
|
|
Loading…
Reference in New Issue