From: Douglas Gregor Date: Tue, 31 Aug 2010 05:36:56 +0000 (+0000) Subject: Revert my lame attempt at appeasing the CFGBuilder X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5722b148e886dd08ef7ee49f033ebe4fd21b1b5e;p=clang Revert my lame attempt at appeasing the CFGBuilder git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112580 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index ea30ec01f6..78979a4fee 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -370,7 +370,6 @@ tryAgain: return VisitBreakStmt(cast(S)); case Stmt::CallExprClass: - case Stmt::CXXOperatorCallExprClass: // FIXME: handle specially? return VisitCallExpr(cast(S), asc); case Stmt::CaseStmtClass: @@ -397,12 +396,6 @@ tryAgain: return Visit(cast(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(S)->getSubExpr()); - } - case Stmt::CXXMemberCallExprClass: return VisitCXXMemberCallExpr(cast(S), asc); diff --git a/test/Analysis/temporaries.cpp b/test/Analysis/temporaries.cpp deleted file mode 100644 index 602948af5c..0000000000 --- a/test/Analysis/temporaries.cpp +++ /dev/null @@ -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++) { } -}