Author: Arthur Eubanks Date: 2022-01-27T14:44:53-08:00 New Revision: 662ef6d177fe8eec7f88f523293eec44f238a2aa
URL: https://github.com/llvm/llvm-project/commit/662ef6d177fe8eec7f88f523293eec44f238a2aa DIFF: https://github.com/llvm/llvm-project/commit/662ef6d177fe8eec7f88f523293eec44f238a2aa.diff LOG: [NFC][Clang][OpaquePtr] Move away from deprecated Address constructor in VisitArrayInitLoopExpr With this we can bootstrap an `-O0 -g0` clang with `-mllvm -opaque-pointers`! Added: Modified: clang/lib/CodeGen/CGExprAgg.cpp Removed: ################################################################################ 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits