Drop a dead call to isConstantExpr()

llvm-svn: 55244
This commit is contained in:
Daniel Dunbar 2008-08-23 18:44:10 +00:00
parent d644ad61e9
commit 28ff072b70
1 changed files with 6 additions and 8 deletions

View File

@ -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()) {