diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-02-05 18:04:23 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-02-05 18:05:05 +0000 | 
| commit | ecbca9f5fb7d7613d2b94982c4825eb0d33d6842 (patch) | |
| tree | 3a4038f3b7bafaeade9fd6146ea8021237616657 /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | 6f8fc217eaa12bf657be1c6468ed9938d10168b3 (diff) | |
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 0968afd82064..73b05690537d 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -1834,8 +1834,8 @@ void AggExprEmitter::VisitArrayInitLoopExpr(const ArrayInitLoopExpr *E,      // at the end of each iteration.      CodeGenFunction::RunCleanupsScope CleanupsScope(CGF);      CodeGenFunction::ArrayInitLoopExprScope Scope(CGF, index); -    LValue elementLV = -        CGF.MakeAddrLValue(Address(element, elementAlign), elementType); +    LValue elementLV = CGF.MakeAddrLValue( +        Address(element, llvmElementType, elementAlign), elementType);      if (InnerLoop) {        // If the subexpression is an ArrayInitLoopExpr, share its cleanup.  | 
