Skip to content

Commit

Permalink
[NFC][Clang][OpaquePtr] Move away from deprecated Address constructor…
Browse files Browse the repository at this point in the history
… in VisitArrayInitLoopExpr

With this we can bootstrap an `-O0 -g0` clang with `-mllvm -opaque-pointers`!
  • Loading branch information
aeubanks committed Jan 27, 2022
1 parent 6e8a66b commit 662ef6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/CGExprAgg.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 662ef6d

Please sign in to comment.