Skip to content

Commit

Permalink
Add a fixme comment in current_target_data_layout
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed Dec 6, 2022
1 parent 05906da commit 948a8f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/hir-ty/src/layout/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ pub fn current_target_data_layout_query(db: &dyn HirDatabase) -> Arc<TargetDataL
},
_ => 8,
});
// FIXME: These values are incorrect for many architectures, at least for aarch64 and riscv64,
// use `rustc +nightly -Z unstable-options --print target-spec-json` or something similar instead.
Arc::new(TargetDataLayout {
endian,
i1_align: AbiAndPrefAlign::new(Align::from_bytes(1).unwrap()),
Expand Down

0 comments on commit 948a8f0

Please sign in to comment.