[cfe-commits] r64994 - in /cfe/trunk/lib: AST/ExprConstant.cpp CodeGen/CGBlocks.cpp CodeGen/CGExprConstant.cpp CodeGen/CGExprScalar.cpp CodeGen/CodeGenModule.h
Eli Friedman
eli.friedman at gmail.com
Wed Feb 18 19:12:50 PST 2009
On Wed, Feb 18, 2009 at 5:01 PM, Mike Stump <mrs at apple.com> wrote:
> --- cfe/trunk/lib/AST/ExprConstant.cpp (original)
> +++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Feb 18 19:01:04 2009
> @@ -260,6 +260,7 @@
> APValue VisitAddrLabelExpr(AddrLabelExpr *E)
> { return APValue(E, 0); }
> APValue VisitCallExpr(CallExpr *E);
> + APValue VisitBlockExpr(BlockExpr *E) { return APValue(E, 0); }
Aren't there some missing checks here? Block expressions can't
possibly be constant in general.
-Eli
More information about the cfe-commits
mailing list