> Rather than threading a CheckDtorAccess bool through everywhere, I think 
you can inline a small portion of the body of FinalizeVarWithDestructor into 
CheckFunctionDefinition and skip the access check. Most of it is probably dead. 
That's what I did initially in http://llvm-reviews.chandlerc.com/D929.

  That just removes one level of threading though. We still need to thread it 
through MarkFunctionReferenced to suppress access checks for base class dtors 
etc. when defining an implicit destructor, and that's where the ugliness comes 
from :/

http://llvm-reviews.chandlerc.com/D2409
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to