[all-commits] [llvm/llvm-project] c39dcf: [libc] Zero initialize Uint<T>::val
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Thu Apr 20 09:48:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c39dcf54bb0494f319cdc712d24607433bd7f30a
https://github.com/llvm/llvm-project/commit/c39dcf54bb0494f319cdc712d24607433bd7f30a
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2023-04-20 (Thu, 20 Apr 2023)
Changed paths:
M libc/src/__support/UInt.h
Log Message:
-----------
[libc] Zero initialize Uint<T>::val
This fix a regression introduced by commit 5db12eca1f70bb9c2dab33ff88dcccdfba75af6e
Fixes the compilation failure reported by libc-x86_64-debian-gcc-fullbuild-dbg:
.../libc/src/__support/UInt.h:26:31: note: ‘struct __llvm_libc::cpp::UInt<192>’ has no user-provided default constructor
26 | template <size_t Bits> struct UInt {
| ^~~~
.../libc/src/__support/UInt.h:38:13: note: constructor is not user-provided because it is explicitly defaulted in the class body
38 | constexpr UInt() = default;
More information about the All-commits
mailing list