Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee committed Jan 19, 2023
1 parent 661bc22 commit aa49452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/codegen/llvm/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,7 @@ LLVMCompiledTask TaskCodeGenLLVM::run_compilation() {
}
} else if (config.arch == Arch::amdgpu) {
for (const auto &task : offloaded_tasks) {
llvm::Function *func = mod->getFunction(task.name);
llvm::Function *func = module->getFunction(task.name);
TI_ASSERT(func);
func->setCallingConv(llvm::CallingConv::AMDGPU_KERNEL);
}
Expand Down

0 comments on commit aa49452

Please sign in to comment.