Skip to content

Commit 67acd13

Browse files
committed
LLVM: LLVM-20.0 removes MMX types
See llvm/llvm-project#98505
1 parent 54be9ad commit 67acd13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1419,8 +1419,10 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
14191419
return LLVMPointerTypeKind;
14201420
case Type::FixedVectorTyID:
14211421
return LLVMVectorTypeKind;
1422+
#if LLVM_VERSION_LT(20, 0)
14221423
case Type::X86_MMXTyID:
14231424
return LLVMX86_MMXTypeKind;
1425+
#endif
14241426
case Type::TokenTyID:
14251427
return LLVMTokenTypeKind;
14261428
case Type::ScalableVectorTyID:

0 commit comments

Comments
 (0)