We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60d83e7 + cdbe956 commit c2d7321Copy full SHA for c2d7321
compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1311,10 +1311,15 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
1311
return LLVMBFloatTypeKind;
1312
case Type::X86_AMXTyID:
1313
return LLVMX86_AMXTypeKind;
1314
-#if LLVM_VERSION_GE(15, 0)
+#if LLVM_VERSION_GE(15, 0) && LLVM_VERSION_LT(16, 0)
1315
case Type::DXILPointerTyID:
1316
report_fatal_error("Rust does not support DirectX typed pointers.");
1317
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;
1323
#endif
1324
}
1325
report_fatal_error("Unhandled TypeID.");
0 commit comments