From 5b54b88c4082bb81b8b341b622fda9a85cbd5fad Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 21 Apr 2009 22:00:54 +0000 Subject: [PATCH] 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 --- include/clang/AST/Expr.h | 2 +- lib/Sema/SemaExpr.cpp | 2 +- 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; } } -- 2.50.1