[cfe-commits] [PATCH][Review Request]Handle CXXTemproraryObjectExpr
Jim Goodnow II
Jim at TheGoodnows.net
Tue Oct 4 13:29:11 PDT 2011
Minor fix to handle this expression class in the core static analyzer
engine. It's basically the same as CXXConstructExpr.
- jim
Index: lib/StaticAnalyzer/Core/ExprEngine.cpp
===================================================================
--- lib/StaticAnalyzer/Core/ExprEngine.cpp (revision 141095)
+++ lib/StaticAnalyzer/Core/ExprEngine.cpp (working copy)
@@ -455,7 +455,6 @@
case Stmt::CXXDependentScopeMemberExprClass:
case Stmt::CXXForRangeStmtClass:
case Stmt::CXXPseudoDestructorExprClass:
- case Stmt::CXXTemporaryObjectExprClass:
case Stmt::CXXThrowExprClass:
case Stmt::CXXTryStmtClass:
case Stmt::CXXTypeidExprClass:
@@ -628,6 +627,7 @@
break;
}
+ case Stmt::CXXTemporaryObjectExprClass:
case Stmt::CXXConstructExprClass: {
const CXXConstructExpr *C = cast<CXXConstructExpr>(S);
// For block-level CXXConstructExpr, we don't have a destination
region.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CXXTemporaryObject.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111004/1d6d90b6/attachment.ksh>
More information about the cfe-commits
mailing list