Merge the conflicts.

This commit is contained in:
Vassil Vassilev 2013-10-29 21:37:32 +01:00 committed by sftnight
parent d70c1702dc
commit cb713d743f

View File

@ -247,10 +247,14 @@ namespace cling {
if (((DeclContextExt*)DC)->LastDecl == D) {
// Valid. Thus remove.
DC->removeDecl(D);
// Force rebuilding of the lookup table.
//DC->setMustBuildLookupTable();
return true;
}
}
else {
// Force rebuilding of the lookup table.
//DC->setMustBuildLookupTable();
DC->removeDecl(D);
return true;
}
@ -279,6 +283,7 @@ namespace cling {
#endif
bool Successful = true;
DeclContextExt::removeIfLast(DC, D);
// With the bump allocator this is nop.
if (Successful)
m_Sema->getASTContext().Deallocate(D);