зеркало из https://github.com/microsoft/clang-1.git
Drop a dead call to isConstantExpr()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55244 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
3e9df9920d
Коммит
be38d0274d
|
@ -371,14 +371,12 @@ void AggExprEmitter::EmitNullInitializationToLValue(LValue LV, QualType T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
|
void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
|
||||||
if (E->isConstantExpr(CGF.getContext(), 0)) {
|
// FIXME: For constant expressions, call into const expr emitter so
|
||||||
// FIXME: call into const expr emitter so that we can emit
|
// that we can emit a memcpy instead of storing the individual
|
||||||
// a memcpy instead of storing the individual members.
|
// members. This is purely for perf; both codepaths lead to
|
||||||
// This is purely for perf; both codepaths lead to equivalent
|
// equivalent (although not necessarily identical) code. It's worth
|
||||||
// (although not necessarily identical) code.
|
// noting that LLVM keeps on getting smarter, though, so it might
|
||||||
// It's worth noting that LLVM keeps on getting smarter, though,
|
// not be worth bothering.
|
||||||
// so it might not be worth bothering.
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle initialization of an array.
|
// Handle initialization of an array.
|
||||||
if (E->getType()->isArrayType()) {
|
if (E->getType()->isArrayType()) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче