aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/CGStmt.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index ff90210126..9fd701419b 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -58,12 +58,7 @@ void CodeGenFunction::EmitStmt(const Stmt *S) {
// 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");
}