diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2015-12-31 05:36:46 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2015-12-31 05:36:46 +0000 |
| commit | 474b323a0387d4c59055300c56951d1aa2591d80 (patch) | |
| tree | 691645d15b55b78aaa59a9744d92bc9de3812994 /clang/lib/CodeGen/CGBlocks.cpp | |
| parent | bc22e26e389ef7f43e47d292c5132974bfdbedb2 (diff) | |
| download | bcm5719-llvm-474b323a0387d4c59055300c56951d1aa2591d80.tar.gz bcm5719-llvm-474b323a0387d4c59055300c56951d1aa2591d80.zip | |
[MSVC Compat] Diagnose multiple default ctors for dllexport'd classes
The MS ABI emits a special default constructor closure thunk if a
default constructor has a weird calling convention or default arguments.
The MS ABI has a quirk: there can be only one such thunk because the
mangling scheme does not have room for distinct manglings. We must
raise a diagnostic in this eventuality.
N.B. MSVC sorta gets this right. Multiple default constructors result
in the default constructor closure getting emitted but they seem to
get confused by which default constructors are reasonable to reference
from the closure. We try to be a little more careful which results in
mild differences in behavior.
llvm-svn: 256661
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
0 files changed, 0 insertions, 0 deletions

