[PATCH] D25779: MS ABI: Don't assert when generating virtual function call with virtual bases and -flto (PR30731)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 19 12:48:47 PDT 2016


hans added a comment.

In https://reviews.llvm.org/D25779#574630, @majnemer wrote:

> Why did this only fail with -flto? Seems strange.


I was asking myself the same thing :-) It's because of this code in MicrosoftCXXABI::getVirtualFunctionPointer:

  if (CGM.getCodeGenOpts().PrepareForLTO) // XXX: Aha!
    CGF.EmitTypeMetadataCodeForVCall(
        getClassAtVTableLocation(getContext(), GD, ML), VTable, Loc);


Repository:
  rL LLVM

https://reviews.llvm.org/D25779





More information about the cfe-commits mailing list