diff --git a/lib/MetaProcessor/Display.cpp b/lib/MetaProcessor/Display.cpp index 5be6bc37..d0545453 100644 --- a/lib/MetaProcessor/Display.cpp +++ b/lib/MetaProcessor/Display.cpp @@ -704,6 +704,9 @@ void ClassPrinter::DisplayClassDecl(const CXXRecordDecl* classDecl)const assert(classDecl != 0 && "DisplayClassDecl, 'classDecl' parameter is null"); assert(fInterpreter != 0 && "DisplayClassDecl, fInterpreter is null"); + // Could trigger deserialization of decls. + Interpreter::PushTransactionRAII RAII(const_cast(fInterpreter)); + classDecl = classDecl->getDefinition(); assert(classDecl != 0 && "DisplayClassDecl, invalid decl - no definition");