First pass update erasure IR

This commit is contained in:
Ayaz Hafiz 2023-07-02 12:38:09 -05:00
parent 7ea85e44d2
commit dc56a0ffef
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 128 additions and 151 deletions

View file

@ -2119,9 +2119,9 @@ impl<'a> Expr<'a> {
};
let callee = symbol_to_doc(alloc, *callee, pretty);
alloc
.text("ErasedMake { value:")
.text("ErasedMake { value: ")
.append(value)
.append(", callee:")
.append(", callee: ")
.append(callee)
.append(" }")
}
@ -4091,7 +4091,7 @@ impl<'a> ProcLayout<'a> {
arguments
} else {
let mut extended_args = Vec::with_capacity_in(arguments.len(), arena);
extended_args.extend(arguments.iter().chain(&[Layout::OPAQUE_PTR]).copied());
extended_args.extend(arguments.iter().chain(&[Layout::ERASED]).copied());
extended_args.into_bump_slice()
};