File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
crates/rustc_codegen_nvvm/src Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ impl<'ll> CodegenCx<'ll, '_> {
125
125
// Specific workaround for LLVM 7 / NVPTX if LLVMPointerType(ptr, AS) -> ptr
126
126
// This condition checks if we asked for a pointer to a pointer type,
127
127
// but got back the same pointer type (not a pointer-to-pointer).
128
- if result_ty == ty && unsafe { llvm:: LLVMGetTypeKind ( ty) == llvm:: TypeKind :: Pointer } {
128
+ if result_ty == ty && unsafe { llvm:: LLVMRustGetTypeKind ( ty) == llvm:: TypeKind :: Pointer } {
129
129
// Check if 'ty' is specifically the generic data pointer (like i8* in default AS for data).
130
130
// For NVPTX, AddressSpace::DATA is often 0 (Generic) or 1 (Global).
131
131
// Let's assume AddressSpace::DATA (0 for generic ptr) is the one involved.
You can’t perform that action at this time.
0 commit comments