Skip to content

Commit

Permalink
LLVM: LLVM-20.0 removes MMX types
Browse files Browse the repository at this point in the history
  • Loading branch information
maurer committed Jul 25, 2024
1 parent 54be9ad commit 67acd13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1419,8 +1419,10 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
return LLVMPointerTypeKind;
case Type::FixedVectorTyID:
return LLVMVectorTypeKind;
#if LLVM_VERSION_LT(20, 0)
case Type::X86_MMXTyID:
return LLVMX86_MMXTypeKind;
#endif
case Type::TokenTyID:
return LLVMTokenTypeKind;
case Type::ScalableVectorTyID:
Expand Down

0 comments on commit 67acd13

Please sign in to comment.