diff --git a/AST/Expr.cpp b/AST/Expr.cpp index 33b56e52b6..682b4bd92b 100644 --- a/AST/Expr.cpp +++ b/AST/Expr.cpp @@ -377,9 +377,10 @@ bool Expr::hasStaticStorage() const { return VD->hasStaticStorage(); return false; } - case MemberExprClass: + case MemberExprClass: { const MemberExpr *M = cast(this); return !M->isArrow() && M->getBase()->hasStaticStorage(); + } case ArraySubscriptExprClass: return cast(this)->getBase()->hasStaticStorage(); }