[PATCH] D60912: MS ABI: handle inline static data member and inline variable as template static data member

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 27 17:09:04 PDT 2021


MaskRay added inline comments.


================
Comment at: lib/CodeGen/CGDeclCXX.cpp:494
     // too.
     AddGlobalCtor(Fn, 65535, COMDATKey);
   } else {
----------------
Confirmed with `lld-link -subsystem:console -opt:ref -debug:symtab a.o b.o c.o -entry:main -out:win.exe` that `__declspec(selectany)` can be linker GCed.

Sent D106925 to fix it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60912/new/

https://reviews.llvm.org/D60912



More information about the cfe-commits mailing list