mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWasm: Use braces to initialize Reference::Foo classes
These have no declared constructor, so apple clang and clang clang seem to disagree on some versions.
This commit is contained in:
parent
9def582fba
commit
d2ff92077b
Notes:
github-actions[bot]
2024-08-07 21:40:36 +00:00
Author: https://github.com/alimpfard
Commit: d2ff92077b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1005
1 changed files with 4 additions and 4 deletions
|
@ -169,13 +169,13 @@ public:
|
|||
if constexpr (IsSame<T, Reference>) {
|
||||
switch (m_value.high()) {
|
||||
case 0:
|
||||
return Reference { Reference::Func(bit_cast<FunctionAddress>(m_value.low())) };
|
||||
return Reference { Reference::Func { bit_cast<FunctionAddress>(m_value.low()) } };
|
||||
case 1:
|
||||
return Reference { Reference::Extern(bit_cast<ExternAddress>(m_value.low())) };
|
||||
return Reference { Reference::Extern { bit_cast<ExternAddress>(m_value.low()) } };
|
||||
case 2:
|
||||
return Reference { Reference::Null(ValueType(ValueType::Kind::FunctionReference)) };
|
||||
return Reference { Reference::Null { ValueType(ValueType::Kind::FunctionReference) } };
|
||||
case 3:
|
||||
return Reference { Reference::Null(ValueType(ValueType::Kind::ExternReference)) };
|
||||
return Reference { Reference::Null { ValueType(ValueType::Kind::ExternReference) } };
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue