Skip to content

Commit

Permalink
[LLVM] Replaced getInt8PtrTy with getUnqual (pytorch#113455)
Browse files Browse the repository at this point in the history
[llvm-fb-staging] Build failed on pytorch jit due to llvm upstream API change. The fix should just replace getInt8PtrTy with getUnqual. The corresponding task - [T169468309](https://www.internalfb.com/tasks/?t=169468309).

Pull Request resolved: pytorch#113455
Approved by: https://github.com/malfet
  • Loading branch information
wlei-llvm authored and pytorchmergebot committed Nov 10, 2023
1 parent 48c2f89 commit cbf12df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/csrc/jit/tensorexpr/llvm_codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ void LLVMCodeGenImpl::visit(LoadPtr v) {
TypedPointer LLVMCodeGenImpl::packFuncArgs(
const std::vector<llvm::Value*>& func_args) {
if (func_args.empty()) {
llvm::PointerType* VoidPtrType = llvm::Type::getInt8PtrTy(getContext());
llvm::PointerType* VoidPtrType = llvm::PointerType::getUnqual(getContext());
return TypedPointer(
VoidPtrType, llvm::ConstantPointerNull::get(VoidPtrType));
}
Expand Down

0 comments on commit cbf12df

Please sign in to comment.