Files
clang-p2996/clang/test/CodeGenCXX/vtable-available-externally.cpp
Fabian Parzefall 53d5ffea6b [clang] Check inline defs when emitting speculative vtable (#100785)
Clang should only emit an available_externally vtable when there are no
unused virtual inline functions. Currently, if such such a function is
declared without inline inside the class, but is defined inline outside
the class, Clang might emit the vtable as available_externally. This
happens because Clang only considers the declarations of vtable entries,
but not the definitions. This patch addresses this by inspecting the
definitions in addition to the declarations.
2024-09-05 12:39:39 -07:00

14 KiB