diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-04-13 21:41:57 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-04-13 21:41:57 +0000 |
commit | 8a3e0b1b8222d52df3d42ca345dc48f991e1908a (patch) | |
tree | 5a5330e6959ea7c1581ea1b56571f97e9013fe38 /lib | |
parent | a31fecaf63dc589af70bc1604f6d2aabeb7769f7 (diff) |
Minor simplification.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 7 |
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"); } |