Add assert

This commit is contained in:
Philippe Canal 2013-08-07 13:27:33 -05:00 committed by sftnight
parent 357182f857
commit f65616bffe

View File

@ -21,6 +21,7 @@ using namespace clang;
namespace cling {
bool DeclCollector::comesFromASTReader(DeclGroupRef DGR) const {
assert(!DGR.isNull() && "DeclGroupRef is Null!");
assert(m_CurTransaction && "No current transaction when deserializing");
if (m_CurTransaction->getCompilationOpts().CodeGenerationForModule)
return true;