Do not try to remove VD from the DeclContext lookup.

This commit is contained in:
Vassil Vassilev 2014-08-14 12:19:18 +02:00 committed by sftnight
parent 4511d419a2
commit 781c0336e3

View File

@ -267,6 +267,7 @@ namespace cling {
// We know the transaction is closed, but it is safe.
getTransaction()->forceAppend(VD); // Add it to the transaction for codegenning
VD->setHidden(true);
TUDC->addHiddenDecl(VD);
Stmts.clear();
return;