ParseTypeName might trigger deserialization.

This commit is contained in:
Vassil Vassilev 2023-07-03 09:46:22 +00:00 committed by jenkins
parent 4c7a2f1ba7
commit c2562c72b1

View File

@ -1674,6 +1674,8 @@ namespace cling {
llvm::StringRef("func.prototype.file"),
diagOnOff);
// ParseTypeName might trigger deserialization.
Interpreter::PushTransactionRAII TforDeser(Interp);
unsigned int nargs = 0;
while (P.getCurToken().isNot(tok::eof)) {
TypeResult Res(P.ParseTypeName());