Skip to content

Commit 8baa14e

Browse files
committed
Fix LLVM deprecation warnings
1 parent 18c759f commit 8baa14e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/abi_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Type *get_llvm_vectype(jl_datatype_t *dt) const
2323
assert(nfields > 0);
2424
if (nfields < 2)
2525
return nullptr;
26-
#if JL_LLVM_VERSION >= 120000
26+
#if JL_LLVM_VERSION >= 110000
2727
static Type *T_vec64 = FixedVectorType::get(T_int32, 2);
2828
static Type *T_vec128 = FixedVectorType::get(T_int32, 4);
2929
#else

src/abi_ppc64le.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Type *preferred_llvm_type(jl_datatype_t *dt, bool isret) const override
134134
jl_datatype_t *vecty = (jl_datatype_t*)jl_field_type(ty0, 0);
135135
assert(jl_is_datatype(vecty) && vecty->name == jl_vecelement_typename);
136136
Type *ety = bitstype_to_llvm(jl_tparam0(vecty));
137-
#if JL_LLVM_VERSION >= 120000
137+
#if JL_LLVM_VERSION >= 110000
138138
Type *vty = FixedVectorType::get(ety, jl_datatype_nfields(ty0));
139139
#else
140140
Type *vty = VectorType::get(ety, jl_datatype_nfields(ty0));

src/cgutils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static Type *_julia_struct_to_llvm(jl_codegen_params_t *ctx, jl_value_t *jt, jl_
625625
// We may need to insert padding first to get to the right offset
626626
if (al > MAX_ALIGN) {
627627
Type *AlignmentType;
628-
#if JL_LLVM_VERSION >= 120000
628+
#if JL_LLVM_VERSION >= 110000
629629
AlignmentType = ArrayType::get(FixedVectorType::get(T_int8, al), 0);
630630
#else
631631
AlignmentType = ArrayType::get(VectorType::get(T_int8, al), 0);
@@ -669,7 +669,7 @@ static Type *_julia_struct_to_llvm(jl_codegen_params_t *ctx, jl_value_t *jt, jl_
669669
}
670670
else if (isarray && !type_is_ghost(lasttype)) {
671671
if (isTuple && isvector && jl_special_vector_alignment(ntypes, jlasttype) != 0)
672-
#if JL_LLVM_VERSION >= 120000
672+
#if JL_LLVM_VERSION >= 110000
673673
struct_decl = FixedVectorType::get(lasttype, ntypes);
674674
#else
675675
struct_decl = VectorType::get(lasttype, ntypes);

0 commit comments

Comments
 (0)