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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm if you clarify that bit
lib/CodeGen/MicrosoftCXXABI.cpp | ||
---|---|---|
1676 ↗ | (On Diff #47407) | According to you, this is a crazy special case, add comments. :) |