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 | a0c32704e26c554c5a41c13f1bd7671c76660f3a (patch) | |
| tree | be4c7f63e42d14470ccdb4b231a9587474d3fd8b /clang/lib/AST/Expr.cpp | |
| parent | bcf548760edada00ede16f06ab07c4bbde252c71 (diff) | |
| download | bcm5719-llvm-a0c32704e26c554c5a41c13f1bd7671c76660f3a.tar.gz bcm5719-llvm-a0c32704e26c554c5a41c13f1bd7671c76660f3a.zip | |
Fix <rdar://problem/6765383> clang-6: clang does not appear to support declaring a static Block 'const'.
llvm-svn: 69306
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
| -rw-r--r-- | clang/lib/AST/Expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index 9e8958c0733..083bf3b8087 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/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: |

