Do not check null deref for static data members calls.
This commit is contained in:
parent
fc500ad68e
commit
0fb177cbf2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user