diff options
| author | bors <bors@rust-lang.org> | 2024-06-10 21:21:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-10 21:21:00 +0000 |
| commit | b5b13568fb5da4ac988bde370008d6134d3dfe6c (patch) | |
| tree | 6c5c97a6ce4d3c13ece43e509e62df9f3b0200dc /compiler/rustc_codegen_gcc | |
| parent | d402830c8a356332de93761d6996faf5a2ca29ca (diff) | |
| parent | d762ef1d0c16ef70d6282a69b16891f8156782f1 (diff) | |
| download | rust-b5b13568fb5da4ac988bde370008d6134d3dfe6c.tar.gz rust-b5b13568fb5da4ac988bde370008d6134d3dfe6c.zip | |
Auto merge of #126240 - matthiaskrgr:rollup-ks4o2n9, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #126063 (Remove some unused crate dependencies.) - #126115 (Fix ICE due to `unwrap` in `probe_for_name_many`) - #126159 (ScalarInt: size mismatches are a bug, do not delay the panic) - #126184 (interpret: do not ICE on padded non-pow2 SIMD vectors) - #126191 (Fix `NonZero` doctest inconsistencies) - #126211 (migrate tests/run-make/llvm-outputs to use rmake.rs) - #126212 (fix: build on haiku) - #126215 (Add explanatory note to async block type mismatch error) - #126223 (run-make: add `run_in_tmpdir` self-test) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/common.rs b/compiler/rustc_codegen_gcc/src/common.rs index 78d943192db..548c23cc794 100644 --- a/compiler/rustc_codegen_gcc/src/common.rs +++ b/compiler/rustc_codegen_gcc/src/common.rs @@ -166,7 +166,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> { let bitsize = if layout.is_bool() { 1 } else { layout.size(self).bits() }; match cv { Scalar::Int(int) => { - let data = int.assert_bits(layout.size(self)); + let data = int.to_bits(layout.size(self)); // FIXME(antoyo): there's some issues with using the u128 code that follows, so hard-code // the paths for floating-point values. |
