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 | c08711e840633057c76bc971ceb112590298b30a (patch) | |
tree | e1aa531e6cbbff949629ece14d450dd8548ebc05 | |
parent | 337cd3a536b73302a3ad845a9dfcca1b36d92be7 (diff) | |
download | bcm5719-llvm-c08711e840633057c76bc971ceb112590298b30a.tar.gz bcm5719-llvm-c08711e840633057c76bc971ceb112590298b30a.zip |
Minor simplification.
llvm-svn: 68992
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index ff902101261..9fd701419bd 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/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"); } |