From fb7080663a0f0abd687a6f58ac917d9a76318b73 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Nov 2007 04:30:09 +0000 Subject: [PATCH] fix compilation error noticed by Nuno Lopes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44388 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/Expr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }