diff options
author | Steve Naroff <snaroff@apple.com> | 2009-04-16 19:02:57 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-04-16 19:02:57 +0000 |
commit | 3aaa482ea5b8d20b705f6ac8573b539be88d273a (patch) | |
tree | ba6534ed1bb56aabc0dd40c7e8cc2a89b21f595d /lib/AST/Expr.cpp | |
parent | 1e9aef31545b2312ddfc5ac2593ad8e48754e2c6 (diff) |
Fix <rdar://problem/6765383> clang-6: clang does not appear to support declaring a static Block 'const'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 9e8958c073..083bf3b808 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -854,6 +854,8 @@ bool Expr::hasGlobalStorage() const { switch (getStmtClass()) { default: return false; + case BlockExprClass: + return true; case ParenExprClass: return cast<ParenExpr>(this)->getSubExpr()->hasGlobalStorage(); case ImplicitCastExprClass: |