mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-18 01:29:47 +00:00
use RocUnion constants for tag index
This commit is contained in:
parent
366429303c
commit
4977d1c65e
4 changed files with 20 additions and 20 deletions
|
@ -2,9 +2,9 @@
|
|||
use crate::debug_info_init;
|
||||
use crate::llvm::build::{
|
||||
complex_bitcast_check_size, load_roc_value, struct_from_fields, to_cc_return, CCReturn, Env,
|
||||
C_CALL_CONV, FAST_CALL_CONV, TAG_DATA_INDEX,
|
||||
C_CALL_CONV, FAST_CALL_CONV,
|
||||
};
|
||||
use crate::llvm::convert::basic_type_from_layout;
|
||||
use crate::llvm::convert::{basic_type_from_layout, RocUnion};
|
||||
use crate::llvm::refcounting::{
|
||||
decrement_refcount_layout, increment_n_refcount_layout, increment_refcount_layout,
|
||||
};
|
||||
|
@ -314,7 +314,7 @@ fn build_has_tag_id_help<'a, 'ctx, 'env>(
|
|||
let tag_data_ptr = {
|
||||
let ptr = env
|
||||
.builder
|
||||
.build_struct_gep(tag_value, TAG_DATA_INDEX, "get_data_ptr")
|
||||
.build_struct_gep(tag_value, RocUnion::TAG_DATA_INDEX, "get_data_ptr")
|
||||
.unwrap();
|
||||
|
||||
env.builder.build_bitcast(ptr, i8_ptr_type, "to_opaque")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue