aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-21 22:00:54 +0000
committerChris Lattner <sabre@nondot.org>2009-04-21 22:00:54 +0000
commit5b54b88c4082bb81b8b341b622fda9a85cbd5fad (patch)
tree84220b462bff7a7b17c94c373c236683ad434ae3
parentc62abc1012feb0b15eff091b02c176649766a347 (diff)
this is a warning now, return a well formed ast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69731 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h2
-rw-r--r--lib/Sema/SemaExpr.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index 3b9b6273b1..7ec0c74e8d 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -2516,7 +2516,7 @@ public:
const FunctionType *getFunctionType() const;
/// hasBlockDeclRefExprs - Return true iff the block has BlockDeclRefExpr
- /// contained inside.
+ /// inside of the block that reference values outside the block.
bool hasBlockDeclRefExprs() const { return HasBlockDeclRefExprs; }
void setHasBlockDeclRefExprs(bool BDRE) { HasBlockDeclRefExprs = BDRE; }
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index b6f1afbe41..33fefe53bc 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -1237,7 +1237,7 @@ bool Sema::CheckSizeOfAlignOfOperand(QualType exprType,
if (LangOpts.ObjCNonFragileABI) {
Diag(OpLoc, diag::err_sizeof_nonfragile_interface)
<< IIT->getDecl()->getDeclName() << isSizeof;
- return true;
+ //return false;
}
}