Commit 48240ef6 by Tianqi Chen Committed by GitHub

[CODEGEN] use charp for voidp (#753)

* [CODEGEN] use charp for voidp

* fx
parent 29226a5f
...@@ -599,7 +599,7 @@ llvm::Value* CodeGenLLVM::CreateIntrinsic(const Call* op) { ...@@ -599,7 +599,7 @@ llvm::Value* CodeGenLLVM::CreateIntrinsic(const Call* op) {
addrspace = llvm::dyn_cast<llvm::PointerType>( addrspace = llvm::dyn_cast<llvm::PointerType>(
ptr->getType())->getAddressSpace(); ptr->getType())->getAddressSpace();
} }
return builder_->CreatePointerCast(ptr, t_void_->getPointerTo(addrspace)); return builder_->CreatePointerCast(ptr, t_char_->getPointerTo(addrspace));
} else if (op->is_intrinsic(Call::reinterpret) && is_zero(op->args[0])) { } else if (op->is_intrinsic(Call::reinterpret) && is_zero(op->args[0])) {
return llvm::Constant::getNullValue(t_void_p_); return llvm::Constant::getNullValue(t_void_p_);
} else if (op->is_intrinsic(intrinsic::tvm_handle_is_null)) { } else if (op->is_intrinsic(intrinsic::tvm_handle_is_null)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment