We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7279106 commit e4d3abfCopy full SHA for e4d3abf
compiler/rustc_codegen_ssa/src/mir/rvalue.rs
@@ -87,7 +87,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
87
let size = bx.const_usize(dest.layout.size.bytes());
88
89
// Use llvm.memset.p0i8.* to initialize all zero arrays
90
- if bx.cx().const_to_opt_uint(v) == Some(0) {
+ if bx.cx().const_to_opt_u128(v, false) == Some(0) {
91
let fill = bx.cx().const_u8(0);
92
bx.memset(start, fill, size, dest.align, MemFlags::empty());
93
return bx;
0 commit comments