Make sure list-initialization of arrays works correctly in explicit type conversions. PR12121.
llvm-svn: 151674
This commit is contained in:
@@ -898,7 +898,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
|
||||
return;
|
||||
}
|
||||
|
||||
llvm::Value *DestPtr = Dest.getAddr();
|
||||
llvm::Value *DestPtr = EnsureSlot(E->getType()).getAddr();
|
||||
|
||||
// Handle initialization of an array.
|
||||
if (E->getType()->isArrayType()) {
|
||||
|
||||
Reference in New Issue
Block a user