Skip to content

Commit 127930c

Browse files
committed
Test fix for Rust CI
1 parent 59a81c2 commit 127930c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)