RustWrapper: update for TypedPointerType in LLVM
This is a result of https://reviews.llvm.org/D130592.
This commit is contained in:
parent
6f18f0a9d4
commit
cdbe956ec3
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue