Thread simple model of "ErasedLambdas" through proc layouts

But none of these paths are yet exercised.
This commit is contained in:
Ayaz Hafiz 2023-06-23 13:15:12 -05:00
parent 6eae480e36
commit c459757062
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
8 changed files with 79 additions and 11 deletions

View file

@ -38,6 +38,7 @@ use roc_collections::all::{MutMap, MutSet};
use roc_debug_flags::dbg_do;
#[cfg(debug_assertions)]
use roc_debug_flags::ROC_PRINT_LLVM_FN_VERIFICATION;
use roc_error_macros::todo_lambda_erasure;
use roc_module::symbol::{Interns, Symbol};
use roc_mono::ir::{
BranchInfo, CallType, CrashTag, EntryPoint, GlueLayouts, HostExposedLambdaSet,
@ -5290,6 +5291,7 @@ fn expose_alias_to_host<'a>(
)
}
RawFunctionLayout::ErasedFunction(..) => todo_lambda_erasure!(),
RawFunctionLayout::ZeroArgumentThunk(result) => {
// Define only the return value size, since this is a thunk
//