[cfe-commits] r72642 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp

Anders Carlsson andersca at mac.com
Sat May 30 15:24:16 PDT 2009


Author: andersca
Date: Sat May 30 17:24:16 2009
New Revision: 72642

URL: http://llvm.org/viewvc/llvm-project?rev=72642&view=rev
Log:
It's OK for a full expr to be null. This fixes the failing test cases.

Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=72642&r1=72641&r2=72642&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Sat May 30 17:24:16 2009
@@ -1544,9 +1544,8 @@
 
 Sema::OwningExprResult Sema::ActOnFinishFullExpr(ExprArg Arg) {
   Expr *FullExpr = Arg.takeAs<Expr>();
-  assert(FullExpr && "Null full expr!");
- 
-  if (!ExprTemporaries.empty()) {
+
+  if (FullExpr && !ExprTemporaries.empty()) {
     // Create a cleanup expr.
     FullExpr = 
       new (Context) CXXExprWithTemporaries(FullExpr, &ExprTemporaries[0],





More information about the cfe-commits mailing list