Skip to content

Commit c2d7321

Browse files
authored
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`
2 parents 60d83e7 + cdbe956 commit c2d7321

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1311,10 +1311,15 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
13111311
return LLVMBFloatTypeKind;
13121312
case Type::X86_AMXTyID:
13131313
return LLVMX86_AMXTypeKind;
1314-
#if LLVM_VERSION_GE(15, 0)
1314+
#if LLVM_VERSION_GE(15, 0) && LLVM_VERSION_LT(16, 0)
13151315
case Type::DXILPointerTyID:
13161316
report_fatal_error("Rust does not support DirectX typed pointers.");
13171317
break;
1318+
#endif
1319+
#if LLVM_VERSION_GE(16, 0)
1320+
case Type::TypedPointerTyID:
1321+
report_fatal_error("Rust does not support typed pointers.");
1322+
break;
13181323
#endif
13191324
}
13201325
report_fatal_error("Unhandled TypeID.");

0 commit comments

Comments
 (0)