Ensure lowlevel inlining does not skip bounds checks

This commit is contained in:
Brian Carroll 2021-11-15 12:49:15 +00:00
parent 8f0c2db418
commit 46636ef331
3 changed files with 22 additions and 20 deletions

View file

@ -471,7 +471,7 @@ impl<'a> WasmBackend<'a> {
}) => match call_type {
CallType::ByName { name: func_sym, .. } => {
// If this function is just a lowlevel wrapper, then inline it
if let Some(lowlevel) = LowLevel::from_wrapper_symbol(*func_sym) {
if let Some(lowlevel) = LowLevel::from_inlined_wrapper(*func_sym) {
return self.build_low_level(lowlevel, arguments, wasm_layout);
}