[cfe-commits] r69731 - in /cfe/trunk: include/clang/AST/Expr.h lib/Sema/SemaExpr.cpp
Chris Lattner
sabre at nondot.org
Tue Apr 21 15:00:55 PDT 2009
Author: lattner
Date: Tue Apr 21 17:00:54 2009
New Revision: 69731
URL: http://llvm.org/viewvc/llvm-project?rev=69731&view=rev
Log:
this is a warning now, return a well formed ast.
Modified:
cfe/trunk/include/clang/AST/Expr.h
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=69731&r1=69730&r2=69731&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Tue Apr 21 17:00:54 2009
@@ -2516,7 +2516,7 @@
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; }
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=69731&r1=69730&r2=69731&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Apr 21 17:00:54 2009
@@ -1237,7 +1237,7 @@
if (LangOpts.ObjCNonFragileABI) {
Diag(OpLoc, diag::err_sizeof_nonfragile_interface)
<< IIT->getDecl()->getDeclName() << isSizeof;
- return true;
+ //return false;
}
}
More information about the cfe-commits
mailing list