Skip to content

Commit

Permalink
Changed name to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
tfzee authored and TheDan64 committed Dec 26, 2023
1 parent 5848760 commit 5e4f77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/all/test_instruction_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ fn test_instructions() {
let f32_val = f32_type.const_float(::std::f64::consts::PI);

let store_instruction = builder.build_store(arg1, f32_val).unwrap();
let alloca_instruction = builder.build_alloca(i64_type, "alloca").unwrap();
let alloca_val = builder.build_alloca(i64_type, "alloca").unwrap();
let ptr_val = builder.build_ptr_to_int(arg1, i64_type, "ptr_val").unwrap();
let ptr = builder.build_int_to_ptr(ptr_val, f32_ptr_type, "ptr").unwrap();
let icmp = builder.build_int_compare(IntPredicate::EQ, arg1, arg1, "icmp").unwrap();
Expand All @@ -251,7 +251,7 @@ fn test_instructions() {
let return_instruction = builder.build_return(None).unwrap();

assert_eq!(
alloca_instruction.as_instruction().unwrap().get_allocated_type(),
alloca_val.as_instruction().unwrap().get_allocated_type(),
Ok(i64_type.as_any_type_enum())
);
assert!(store_instruction.get_allocated_type().is_err());
Expand Down

0 comments on commit 5e4f77d

Please sign in to comment.