avoid crashing when seeing module 'import' thingies
git-svn-id: http://root.cern.ch/svn/root/trunk@47653 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
parent
b66d4750fd
commit
63ea4e20db
@ -20,12 +20,17 @@ namespace cling {
|
||||
}
|
||||
|
||||
bool DeclCollector::HandleTopLevelDecl(DeclGroupRef DGR) {
|
||||
m_CurTransaction->appendUnique(DGR);
|
||||
// ImportDecl is a special decl that triggers module loading in the front
|
||||
// end. The issue is that HandleImplicitImportDecl now is
|
||||
// bound/forwarded to HandleTopLevelDecl which soon won't be the case
|
||||
// and thus we don't need to bother adding it now.
|
||||
if (!(DGR.isSingleDecl() && isa<ImportDecl>(DGR.getSingleDecl())))
|
||||
m_CurTransaction->appendUnique(DGR);
|
||||
return true;
|
||||
}
|
||||
|
||||
void DeclCollector::HandleInterestingDecl(DeclGroupRef DGR) {
|
||||
assert(0 && "Not implemented yet!");
|
||||
HandleTopLevelDecl(DGR);
|
||||
}
|
||||
|
||||
// Does more than we want:
|
||||
|
Loading…
Reference in New Issue
Block a user