Skip to content

Commit 02f1736

Browse files
committed
Real API
1 parent f3f32da commit 02f1736

File tree

1 file changed

+1
-1
lines changed
  • crates/rustc_codegen_nvvm/src

1 file changed

+1
-1
lines changed

crates/rustc_codegen_nvvm/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'ll> CodegenCx<'ll, '_> {
125125
// Specific workaround for LLVM 7 / NVPTX if LLVMPointerType(ptr, AS) -> ptr
126126
// This condition checks if we asked for a pointer to a pointer type,
127127
// 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 } {
129129
// Check if 'ty' is specifically the generic data pointer (like i8* in default AS for data).
130130
// For NVPTX, AddressSpace::DATA is often 0 (Generic) or 1 (Global).
131131
// Let's assume AddressSpace::DATA (0 for generic ptr) is the one involved.

0 commit comments

Comments
 (0)