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:
ayeteadoe 2025-05-08 19:27:27 -07:00 committed by Andrew Kaster
commit 0253342c1a
Notes: github-actions[bot] 2025-05-12 09:23:50 +00:00

View file

@ -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 {