Skip to content

Commit 027bbf8

Browse files
committed
implement data_layout() for CodegenCx
it's being called when compiling tests since commit `a93a9aa2d57564660b2c28e5c1cdda7943989f17`
1 parent 7737a2d commit 027bbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rustc_codegen_c/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl<'tcx, 'mx> HasTyCtxt<'tcx> for CodegenCx<'tcx, 'mx> {
7979

8080
impl<'tcx, 'mx> HasDataLayout for CodegenCx<'tcx, 'mx> {
8181
fn data_layout(&self) -> &TargetDataLayout {
82-
todo!()
82+
&self.tcx.data_layout
8383
}
8484
}
8585

0 commit comments

Comments
 (0)