[cfe-commits] r112580 - in /cfe/trunk: lib/Analysis/CFG.cpp test/Analysis/temporaries.cpp
Douglas Gregor
dgregor at apple.com
Mon Aug 30 22:36:56 PDT 2010
Author: dgregor
Date: Tue Aug 31 00:36:56 2010
New Revision: 112580
URL: http://llvm.org/viewvc/llvm-project?rev=112580&view=rev
Log:
Revert my lame attempt at appeasing the CFGBuilder
Removed:
cfe/trunk/test/Analysis/temporaries.cpp
Modified:
cfe/trunk/lib/Analysis/CFG.cpp
Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=112580&r1=112579&r2=112580&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Tue Aug 31 00:36:56 2010
@@ -370,7 +370,6 @@
return VisitBreakStmt(cast<BreakStmt>(S));
case Stmt::CallExprClass:
- case Stmt::CXXOperatorCallExprClass: // FIXME: handle specially?
return VisitCallExpr(cast<CallExpr>(S), asc);
case Stmt::CaseStmtClass:
@@ -397,12 +396,6 @@
return Visit(cast<CXXExprWithTemporaries>(S)->getSubExpr());
}
- case Stmt::CXXBindTemporaryExprClass: {
- // FIXME: Handle temporary binding. For now, just visit the subexpression
- // so we don't artificially create extra blocks.
- return Visit(cast<CXXBindTemporaryExpr>(S)->getSubExpr());
- }
-
case Stmt::CXXMemberCallExprClass:
return VisitCXXMemberCallExpr(cast<CXXMemberCallExpr>(S), asc);
Removed: cfe/trunk/test/Analysis/temporaries.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/temporaries.cpp?rev=112579&view=auto
==============================================================================
--- cfe/trunk/test/Analysis/temporaries.cpp (original)
+++ cfe/trunk/test/Analysis/temporaries.cpp (removed)
@@ -1,13 +0,0 @@
-// // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-inline-call -analyzer-store region -verify %s
-
-// FIXME: Super-simple test to make sure we don't die on temporaries.
-
-struct X {
- X();
- ~X();
- X operator++(int);
-};
-
-int f(X x, X y) {
- for (; ; x++) { }
-}
More information about the cfe-commits
mailing list