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.
1 parent 02f1736 commit d658744Copy full SHA for d658744
crates/rustc_codegen_nvvm/src/ty.rs
@@ -115,8 +115,7 @@ impl<'ll> CodegenCx<'ll, '_> {
115
TypeKind::Function,
116
"don't call ptr_to on function types, use ptr_to_llvm_type on FnAbi instead or explicitly specify an address space if it makes sense"
117
);
118
-
119
- unsafe { llvm::LLVMPointerType(ty, AddressSpace::DATA.0) }
+ self.type_ptr_to_ext(ty, AddressSpace::DATA)
120
}
121
122
pub(crate) fn type_ptr_to_ext(&self, ty: &'ll Type, address_space: AddressSpace) -> &'ll Type {
0 commit comments