Skip to content

Commit 272d336

Browse files
committed
Remove some unnecessary as u64 casts
In each of these casts, the LHS is already `u64`.
1 parent e39e5a0 commit 272d336

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_codegen_llvm/src/debuginfo

1 file changed

+4
-4
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,21 @@ impl<'ll> DebugInfoBuilderMethods for Builder<'_, 'll, '_> {
165165

166166
if direct_offset.bytes() > 0 {
167167
addr_ops.push(DW_OP_plus_uconst);
168-
addr_ops.push(direct_offset.bytes() as u64);
168+
addr_ops.push(direct_offset.bytes());
169169
}
170170
for &offset in indirect_offsets {
171171
addr_ops.push(DW_OP_deref);
172172
if offset.bytes() > 0 {
173173
addr_ops.push(DW_OP_plus_uconst);
174-
addr_ops.push(offset.bytes() as u64);
174+
addr_ops.push(offset.bytes());
175175
}
176176
}
177177
if let Some(fragment) = fragment {
178178
// `DW_OP_LLVM_fragment` takes as arguments the fragment's
179179
// offset and size, both of them in bits.
180180
addr_ops.push(DW_OP_LLVM_fragment);
181-
addr_ops.push(fragment.start.bits() as u64);
182-
addr_ops.push((fragment.end - fragment.start).bits() as u64);
181+
addr_ops.push(fragment.start.bits());
182+
addr_ops.push((fragment.end - fragment.start).bits());
183183
}
184184

185185
let di_builder = DIB(self.cx());

0 commit comments

Comments
 (0)