Skip to content

Commit

Permalink
Remove the deprecated API llvm::Type::getInt8PtrTy usage. (#7937)
Browse files Browse the repository at this point in the history
This API is removed in LLVM trunk now llvm/llvm-project@7b9d73c.
  • Loading branch information
hokein authored Nov 9, 2023
1 parent 3b4dc33 commit f25af7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeGen_LLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5161,7 +5161,7 @@ llvm::Type *CodeGen_LLVM::llvm_type_of(LLVMContext *c, Halide::Type t,
return nullptr;
}
} else if (t.is_handle()) {
return llvm::Type::getInt8PtrTy(*c);
return llvm::PointerType::getUnqual(*c);
} else {
return llvm::Type::getIntNTy(*c, t.bits());
}
Expand Down

0 comments on commit f25af7f

Please sign in to comment.