]> granicus.if.org Git - clang/commitdiff
this is a warning now, return a well formed ast.
authorChris Lattner <sabre@nondot.org>
Tue, 21 Apr 2009 22:00:54 +0000 (22:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Apr 2009 22:00:54 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69731 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h
lib/Sema/SemaExpr.cpp

index 3b9b6273b15918e4eabeb0c3fc588b0b70ac7352..7ec0c74e8d40bff2672d33a742b6728d0178c437 100644 (file)
@@ -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; }
 
index b6f1afbe41afbd6c09f0ee3e533351759077aae2..33fefe53bc0c6b0de4e0ce4ee679bc6fb0ed9b7a 100644 (file)
@@ -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;
     }
   }