diff options
| author | Ralf Jung <post@ralfj.de> | 2025-07-08 06:59:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 06:59:33 +0000 |
| commit | 9110617cc7192e512511ef74de83cb8a8ab06a69 (patch) | |
| tree | 4376d8c702b0394cca4f7cc3204ed2c521d87530 /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | a96e73f39e99811a2550c1c96923058da3fa0a47 (diff) | |
| parent | bd84ba8ddab8817691022cc7ef6e0bd36015e819 (diff) | |
| download | rust-9110617cc7192e512511ef74de83cb8a8ab06a69.tar.gz rust-9110617cc7192e512511ef74de83cb8a8ab06a69.zip | |
Merge pull request #4455 from RalfJung/rustup
Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index 7cfab25bc50..92f38565eef 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -175,7 +175,7 @@ impl<'ll, 'tcx> ConstCodegenMethods for CodegenCx<'ll, 'tcx> { } fn const_usize(&self, i: u64) -> &'ll Value { - let bit_size = self.data_layout().pointer_size.bits(); + let bit_size = self.data_layout().pointer_size().bits(); if bit_size < 64 { // make sure it doesn't overflow assert!(i < (1 << bit_size)); |
