Skip to content

Commit a9eea3d

Browse files
committed
Fix error in CI
1 parent cf2f17a commit a9eea3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_gcc/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl<'gcc, 'tcx> ConstCodegenMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
247247
if !matches!(layout.primitive(), Pointer(_)) {
248248
self.const_bitcast(ptr.dereference(None).to_rvalue(), ty)
249249
} else {
250-
self.context.new_cast(None, ptr, ty)
250+
self.const_bitcast(ptr, ty)
251251
}
252252
}
253253
}

0 commit comments

Comments
 (0)