]> granicus.if.org Git - clang/commit
Internally store the body of a BlockExpr using a Stmt* instead of a CompoundStmt...
authorTed Kremenek <kremenek@apple.com>
Fri, 26 Sep 2008 23:24:14 +0000 (23:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 26 Sep 2008 23:24:14 +0000 (23:24 +0000)
commit9da13f9ddb2567e36f4bbee7b3c32f54aeb76d5b
tree0096f7e36fcbb7d048154b528140760cd4366e93
parente7b8d400208e886a167a4481a9024295a3ce17d1
Internally store the body of a BlockExpr using a Stmt* instead of a CompoundStmt*, and use the getBody() method to do the appropriate checking.  This both removes the type-punning warnings in Expr.cpp and also makes BlockExpr have more consistency checks against modifications to its body (via StmtIterator).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56710 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/AST/Expr.cpp