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 EmitCXXMemberDataPointerAddress()
  • Loading branch information
aeubanks committed Jan 27, 2022
1 parent f9a00b3 commit 6e8a66b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/lib/CodeGen/CGClass.cpp
Expand Up @@ -162,7 +162,8 @@ CodeGenFunction::EmitCXXMemberDataPointerAddress(const Expr *E, Address base,
CGM.getDynamicOffsetAlignment(base.getAlignment(),
memberPtrType->getClass()->getAsCXXRecordDecl(),
memberAlign);
return Address(ptr, memberAlign);
return Address(ptr, ConvertTypeForMem(memberPtrType->getPointeeType()),
memberAlign);
}

CharUnits CodeGenModule::computeNonVirtualBaseClassOffset(
Expand Down

0 comments on commit 6e8a66b

Please sign in to comment.