[clang] [clang][bytecode] Don't memcpy() FixedPoint values (PR #123599)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 20 04:15:53 PST 2025
================
@@ -91,6 +91,31 @@ class FixedPoint final {
return ComparisonCategoryResult::Greater;
}
+ size_t bytesToSerialize() const {
+ return sizeof(uint32_t) + (V.getValue().getBitWidth() / CHAR_BIT);
----------------
Endilll wrote:
I wonder how much do we care about `CHAR_BIT != 8`. Or you just avoid unnamed constants in the code?
https://github.com/llvm/llvm-project/pull/123599
More information about the cfe-commits
mailing list