Skip to content

Commit

Permalink
[bug] Fix compilation error (taichi-dev#7606)
Browse files Browse the repository at this point in the history
Issue: #

### Brief Summary
  • Loading branch information
PGZXB authored Mar 21, 2023
1 parent 36eb503 commit 97260fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taichi/codegen/llvm/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2803,7 +2803,7 @@ llvm::Value *TaskCodeGenLLVM::get_struct_arg(std::vector<int> index) {
return builder->CreateLoad(tlctx->get_data_type(arg_type), gep);
}

llvm::Value *TaskCodeGenLLVM::get_args_ptr(Callable *callable,
llvm::Value *TaskCodeGenLLVM::get_args_ptr(const Callable *callable,
llvm::Value *context) {
auto *runtime_context_type = get_runtime_type("RuntimeContext");
auto *args_type = tlctx->get_data_type(callable->args_type);
Expand Down
2 changes: 1 addition & 1 deletion taichi/codegen/llvm/codegen_llvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class TaskCodeGenLLVM : public IRVisitor, public LLVMModuleBuilder {

llvm::Value *get_struct_arg(std::vector<int> index);

llvm::Value *get_args_ptr(Callable *callable, llvm::Value *context);
llvm::Value *get_args_ptr(const Callable *callable, llvm::Value *context);

void set_args_ptr(Callable *callable, llvm::Value *context, llvm::Value *ptr);

Expand Down

0 comments on commit 97260fc

Please sign in to comment.