diff options
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 5e36751fb7..058b561f95 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -394,7 +394,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) { // FIXME: Should we really be doing this? Should we try to avoid // cases where we emit a global with a lot of zeros? Should // we try to avoid short globals? - if (E->isConstantExpr(CGF.getContext(), 0)) { + if (E->isConstantInitializer(CGF.getContext(), 0)) { llvm::Constant* C = CGF.CGM.EmitConstantExpr(E, &CGF); llvm::GlobalVariable* GV = new llvm::GlobalVariable(C->getType(), true, |