mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibRegex: Use NO_UNIQUE_ADDRESS in RegexMatch for Windows support
Clang's `x86_64-pc-windows-msvc` target requires `[[msvc::no_unique_address]]`, which is properly set in the `NO_UNIQUE_ADDRESS` macro in `AK/Platform.h`. Without this, building on Windows fails due to `-Wunknown-attributes`.
This commit is contained in:
parent
fc6237325b
commit
0253342c1a
|
|
@ -301,8 +301,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
[[no_unique_address]] Variant<StringView, Utf16View> m_view { StringView {} };
|
||||
[[no_unique_address]] bool m_unicode { false };
|
||||
NO_UNIQUE_ADDRESS Variant<StringView, Utf16View> m_view { StringView {} };
|
||||
NO_UNIQUE_ADDRESS bool m_unicode { false };
|
||||
};
|
||||
|
||||
class Match final {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user