[PATCH] Do not assert when dereferencing member pointer using virtual inheritance with an incomplete class type

David Majnemer david.majnemer at gmail.com
Thu Feb 20 01:48:04 PST 2014


Hi rnk, rsmith,

The MS ABI requires that we determine the vbptr offset if have a virtual inheritance model.  Instead, raise an error pointing to the diagnostic when this happens.

This fixes PR18583.

http://llvm-reviews.chandlerc.com/D2842

Files:
  lib/CodeGen/MicrosoftCXXABI.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGExprCXX.cpp
  lib/CodeGen/CGCXXABI.cpp
  lib/CodeGen/ItaniumCXXABI.cpp
  lib/CodeGen/CGCXXABI.h
  test/CodeGenCXX/microsoft-abi-member-pointers.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2842.1.patch
Type: text/x-patch
Size: 12022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140220/accac751/attachment.bin>


More information about the cfe-commits mailing list