r260388 - [MS ABI] Never reference dllimport'd vtables

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 14:24:06 PST 2016


On Wed, Feb 10, 2016 at 9:40 AM, David Majnemer via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: majnemer
> Date: Wed Feb 10 11:40:47 2016
> New Revision: 260388
>
> URL: http://llvm.org/viewvc/llvm-project?rev=260388&view=rev
> Log:
> [MS ABI] Never reference dllimport'd vtables
>
> Referencing a dllimported vtable is impossible in a constexpr
> constructor.  It would be friendlier to C++ programmers if we
> synthesized a copy of the vftable which referenced imported virtual
> functions.  This would let us initialize the object in a way which
> preserves both the intent to import functionality from another DLL while
> also making constexpr work.
>
> Differential Revision: http://reviews.llvm.org/D17061

I reverted this in r260449 as it caused PR26569.

 - Hans


More information about the cfe-commits mailing list