diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-10-27 03:23:10 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-10-27 03:23:10 +0000 |
commit | a1898ddd5d0e46330898930b9185b628b5cede63 (patch) | |
tree | 930973ed8084a4c474e9ce11f41bdfa78c8b0869 /lib/CodeGen/CodeGenModule.h | |
parent | 82b965992fbd27da37b9e13b5ef618d73f33e5c9 (diff) |
If visiting RHS causes us to finish 'Block', e.g. the RHS is a StmtExpr
containing a DoStmt, and the LHS doesn't create a new block, then we should
return RBlock. Otherwise we'll incorrectly return NULL.
Also relax an assertion in VisitWhileStmt(). Reset 'Block' when it is finished.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions