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.
fewer_names
1 parent 5d2b7ba commit 0fcc9beCopy full SHA for 0fcc9be
compiler/rustc_codegen_llvm/src/type_of.rs
@@ -63,9 +63,10 @@ fn uncached_llvm_type<'a, 'tcx>(
63
}
64
Some(name)
65
66
- // Use identified structure types for ADT. Due to pointee types in LLVM IR their definition
+ // In LLVM < 15, use identified structure types for ADT. Due to pointee types in LLVM IR their definition
67
// might be recursive. Other cases are non-recursive and we can use literal structure types.
68
- ty::Adt(..) => Some(String::new()),
+ // In LLVM 15, we use opaque pointers, so there are no pointee types and no potential recursion.
69
+ ty::Adt(..) if get_version() < (15, 0, 0) => Some(String::new()),
70
_ => None,
71
};
72
0 commit comments