Do not check null deref for static data members calls.

This commit is contained in:
CristinaCristescu 2016-03-20 18:12:34 +01:00 committed by sftnight
parent fc500ad68e
commit 0fb177cbf2

View File

@ -67,9 +67,11 @@ namespace cling {
}
bool VisitMemberExpr(MemberExpr* ME) {
VisitStmt(ME->getBase());
if (ME->isArrow())
ME->setBase(SynthesizeCheck(ME->getBase()));
if (!((VarDecl*)(ME->getMemberDecl()))->isStaticDataMember()) {
VisitStmt(ME->getBase());
if (ME->isArrow())
ME->setBase(SynthesizeCheck(ME->getBase()));
}
return true;
}