forked from OSchip/llvm-project
[NFC][Clang][OpaquePtr] Move away from deprecated Address constructor in VisitArrayInitLoopExpr
With this we can bootstrap an `-O0 -g0` clang with `-mllvm -opaque-pointers`!
This commit is contained in:
parent
6e8a66bdad
commit
662ef6d177
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue