mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 01:11:07 +00:00
AK: Add abstraction for forcing empty base optimization on Windows
Without this annotation, the MSVC ABI is reluctant to apply EBO even in cases that are basically guaranteed on the Itanium ABI by modern compilers. This fixes an UBSAN issue with Variant on Windows.
This commit is contained in:
parent
75b0e9a199
commit
3fd05306fc
Notes:
github-actions[bot]
2025-06-17 21:35:02 +00:00
Author: https://github.com/ayeteadoe
Commit: 3fd05306fc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4962
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/R-Goc
3 changed files with 10 additions and 3 deletions
|
@ -478,7 +478,7 @@ private:
|
|||
}
|
||||
|
||||
template<typename... Fs>
|
||||
struct Visitor : Fs... {
|
||||
struct AK_COMPACT_EMPTY_BASES Visitor : Fs... {
|
||||
using Types = TypeList<Fs...>;
|
||||
|
||||
Visitor(Fs&&... args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue