diff --git a/tests/all/test_instruction_values.rs b/tests/all/test_instruction_values.rs index fb8e50dad31..4e63e649537 100644 --- a/tests/all/test_instruction_values.rs +++ b/tests/all/test_instruction_values.rs @@ -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(); @@ -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());