diff options
author | Zhongxing Xu <xuzhongxing@foxmail.com> | 2012-01-11 02:39:07 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@foxmail.com> | 2012-01-11 02:39:07 +0000 |
commit | 97a72c35a62304c3781aa280e28cb97a59afd585 (patch) | |
tree | a0fb3a9de223b6e43412fef01dae41c3f4f2e7d6 /lib/Analysis/CFG.cpp | |
parent | b69b42c55d56815bab62991bf839cdb41634d3af (diff) |
Add elidable CXXConstructExpr as block-level expr. It converts an lvalue to a rvalue, which is a useful step during AST evaluation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFG.cpp')
-rw-r--r-- | lib/Analysis/CFG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index df8d7011af..4ccbf595a7 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -2768,8 +2768,7 @@ CFGBlock *CFGBuilder::VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *E, CFGBlock *CFGBuilder::VisitCXXConstructExpr(CXXConstructExpr *C, AddStmtChoice asc) { autoCreateBlock(); - if (!C->isElidable() && asc.alwaysAdd(*this, C)) - appendStmt(Block, C); + appendStmt(Block, C); return VisitChildren(C); } |