1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:27:45 +00:00

LibJS: Remove workaround for Clang misalignment in MathematicalValue

As noted in 269a931, this has been fixed in Clang 15.
This commit is contained in:
Timothy Flynn 2022-11-15 07:12:53 -05:00 committed by Linus Groh
parent 3287aa20b1
commit 421ebc2e29

View file

@ -95,11 +95,7 @@ private:
static ValueType value_from_number(double number);
// NOTE: The specific alignment is to avoid an UBSAN error with Clang i686, due to Clang
// disagreeing with UBSAN on the alignment of doubles. See:
// https://github.com/llvm/llvm-project/issues/54845
// https://github.com/SerenityOS/serenity/issues/13614
alignas(8) ValueType m_value { 0.0 };
ValueType m_value { 0.0 };
};
}