summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-04-16 19:02:57 +0000
committerSteve Naroff <snaroff@apple.com>2009-04-16 19:02:57 +0000
commita0c32704e26c554c5a41c13f1bd7671c76660f3a (patch)
treebe4c7f63e42d14470ccdb4b231a9587474d3fd8b /clang/lib/AST/Expr.cpp
parentbcf548760edada00ede16f06ab07c4bbde252c71 (diff)
downloadbcm5719-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.cpp2
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:
OpenPOWER on IntegriCloud