mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #100148 - durin42:llvm-16-pointertype, r=nikic
RustWrapper: update for TypedPointerType in LLVM This is a result of https://reviews.llvm.org/D130592. r? `@nikic`
This commit is contained in:
commit
c2d7321a2d
@ -1311,10 +1311,15 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
|
|||||||
return LLVMBFloatTypeKind;
|
return LLVMBFloatTypeKind;
|
||||||
case Type::X86_AMXTyID:
|
case Type::X86_AMXTyID:
|
||||||
return LLVMX86_AMXTypeKind;
|
return LLVMX86_AMXTypeKind;
|
||||||
#if LLVM_VERSION_GE(15, 0)
|
#if LLVM_VERSION_GE(15, 0) && LLVM_VERSION_LT(16, 0)
|
||||||
case Type::DXILPointerTyID:
|
case Type::DXILPointerTyID:
|
||||||
report_fatal_error("Rust does not support DirectX typed pointers.");
|
report_fatal_error("Rust does not support DirectX typed pointers.");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if LLVM_VERSION_GE(16, 0)
|
||||||
|
case Type::TypedPointerTyID:
|
||||||
|
report_fatal_error("Rust does not support typed pointers.");
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
report_fatal_error("Unhandled TypeID.");
|
report_fatal_error("Unhandled TypeID.");
|
||||||
|
Loading…
Reference in New Issue
Block a user