aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-23 18:44:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-23 18:44:10 +0000
commitbe38d0274d0836f31ddeaee6789433b99a5a0c9c (patch)
treec6565388e19ee3658627d3c6de8b85fe66a382ca /lib/CodeGen/CGExprAgg.cpp
parent3e9df9920db8de8ec93a424b0c1784f9bff301ea (diff)
Drop a dead call to isConstantExpr()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index fbba9c6c0c..c3db624478 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -371,14 +371,12 @@ void AggExprEmitter::EmitNullInitializationToLValue(LValue LV, QualType T) {
}
void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
- if (E->isConstantExpr(CGF.getContext(), 0)) {
- // FIXME: call into const expr emitter so that we can emit
- // a memcpy instead of storing the individual members.
- // This is purely for perf; both codepaths lead to equivalent
- // (although not necessarily identical) code.
- // It's worth noting that LLVM keeps on getting smarter, though,
- // so it might not be worth bothering.
- }
+ // FIXME: For constant expressions, call into const expr emitter so
+ // that we can emit a memcpy instead of storing the individual
+ // members. This is purely for perf; both codepaths lead to
+ // equivalent (although not necessarily identical) code. It's worth
+ // noting that LLVM keeps on getting smarter, though, so it might
+ // not be worth bothering.
// Handle initialization of an array.
if (E->getType()->isArrayType()) {