Add missing transaction (fix .class)

This commit is contained in:
Philippe Canal 2013-09-04 11:27:03 -05:00 committed by sftnight
parent 5e68396609
commit 26a63ae38f

View File

@ -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<Interpreter*>(fInterpreter));
classDecl = classDecl->getDefinition();
assert(classDecl != 0 && "DisplayClassDecl, invalid decl - no definition");