In Visitor of PointerCheckInjector use Traverse not Visit.

This commit is contained in:
CristinaCristescu 2016-04-08 15:15:21 +02:00 committed by sftnight
parent 1472015449
commit 0059a81ac3

View File

@ -217,8 +217,7 @@ namespace cling {
NullDerefProtectionTransformer::Transform(clang::Decl* D) {
PointerCheckInjector injector(*m_Sema);
injector.VisitDecl(D);
injector.TraverseDecl(D);
return Result(D, true);
}
} // end namespace cling