mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Only check for repr equality in codegen
This commit is contained in:
parent
8ca71c7eda
commit
931d26206f
3 changed files with 11 additions and 7 deletions
|
@ -181,6 +181,10 @@ pub trait LayoutInterner<'a>: Sized {
|
|||
//
|
||||
// Convenience methods
|
||||
|
||||
fn eq_repr(&self, a: InLayout<'a>, b: InLayout<'a>) -> bool {
|
||||
self.get(a).repr == self.get(b).repr
|
||||
}
|
||||
|
||||
fn target_info(&self) -> TargetInfo;
|
||||
|
||||
fn alignment_bytes(&self, layout: InLayout<'a>) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue