[cfe-commits] r68992 - /cfe/trunk/lib/CodeGen/CGStmt.cpp

Eli Friedman eli.friedman at gmail.com
Mon Apr 13 14:41:57 PDT 2009


Author: efriedma
Date: Mon Apr 13 16:41:57 2009
New Revision: 68992

URL: http://llvm.org/viewvc/llvm-project?rev=68992&view=rev
Log:
Minor simplification.


Modified:
    cfe/trunk/lib/CodeGen/CGStmt.cpp

Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=68992&r1=68991&r2=68992&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Mon Apr 13 16:41:57 2009
@@ -58,12 +58,7 @@
     // Must be an expression in a stmt context.  Emit the value (to get
     // side-effects) and ignore the result.
     if (const Expr *E = dyn_cast<Expr>(S)) {
-      if (!hasAggregateLLVMType(E->getType()))
-        EmitScalarExpr(E);
-      else if (E->getType()->isAnyComplexType())
-        EmitComplexExpr(E);
-      else
-        EmitAggExpr(E, 0, false);
+      EmitAnyExpr(E);
     } else {
       ErrorUnsupported(S, "statement");
     }





More information about the cfe-commits mailing list