mirror of
https://github.com/fluencelabs/wasmer
synced 2025-07-03 10:31:34 +00:00
Improve some TBAA label names, particular for memory.
Memory can't change between static and dynamic, so use that in the TBAA label name. Distinguish between local and imported memory, table and globals.
This commit is contained in:
@ -577,16 +577,16 @@ fn resolve_memory_ptr(
|
||||
tbaa_label(
|
||||
module.clone(),
|
||||
intrinsics,
|
||||
"context_field_ptr_to_base",
|
||||
"dynamic_memory_base",
|
||||
base.as_instruction_value().unwrap(),
|
||||
None,
|
||||
Some(0),
|
||||
);
|
||||
tbaa_label(
|
||||
module.clone(),
|
||||
intrinsics,
|
||||
"context_field_ptr_to_bounds",
|
||||
"dynamic_memory_bounds",
|
||||
bounds.as_instruction_value().unwrap(),
|
||||
None,
|
||||
Some(0),
|
||||
);
|
||||
(base, bounds)
|
||||
}
|
||||
|
Reference in New Issue
Block a user