[all-commits] [llvm/llvm-project] 31316b: [reland][libc] Make BigInt bit_cast-able to compat...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Fri Dec 8 09:03:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31316b3f8511d659cc14ebc72fb2b226f78478a9
      https://github.com/llvm/llvm-project/commit/31316b3f8511d659cc14ebc72fb2b226f78478a9
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2023-12-08 (Fri, 08 Dec 2023)

  Changed paths:
    M libc/src/__support/UInt.h
    M libc/src/__support/float_to_string.h
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/uint_test.cpp
    M utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel

  Log Message:
  -----------
  [reland][libc] Make BigInt bit_cast-able to compatible types (#74862)

Fix #74258
This is a reland of #74837, the error went unnoticed because it compiles
fine on
clang-16 but not on clang-12 which is the version used on the buildbots.

The fix was to explicitly initialize `BigInt` variables in `constexpr`
operations: `BigInt<Bits, Signed> result(0);` instead of `BigInt<Bits,
Signed> result;`




More information about the All-commits mailing list