mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Support ValuePtr in alias analysis and llvm
This commit is contained in:
parent
8d9c6d09b9
commit
0385da490a
2 changed files with 3 additions and 2 deletions
|
@ -96,12 +96,13 @@ pub fn load<'ctx>(
|
|||
) -> PointerValue<'ctx> {
|
||||
let index = match field {
|
||||
ErasedField::Value => 0,
|
||||
ErasedField::ValuePtr => 0,
|
||||
ErasedField::Callee => 1,
|
||||
};
|
||||
|
||||
let value = env
|
||||
.builder
|
||||
.build_extract_value(erasure, index, "extract_value")
|
||||
.build_extract_value(erasure, index, "extract_erased_value")
|
||||
.unwrap()
|
||||
.into_pointer_value();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue