Skip to content

Commit

Permalink
Merge branch 'add_reference' of github.com:lin-hitonami/taichi into a…
Browse files Browse the repository at this point in the history
…dd_reference
  • Loading branch information
lin-hitonami committed Apr 29, 2022
2 parents 8463f7f + e7316c1 commit 730d4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/codegen/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ void CodeGenLLVM::visit(ArgLoadStmt *stmt) {

llvm::Type *dest_ty = nullptr;
if (stmt->is_ptr) {
dest_ty =
llvm::PointerType::get(tlctx->get_data_type(stmt->ret_type.ptr_removed()), 0);
dest_ty = llvm::PointerType::get(
tlctx->get_data_type(stmt->ret_type.ptr_removed()), 0);
llvm_val[stmt] = builder->CreateIntToPtr(raw_arg, dest_ty);
} else {
llvm_val[stmt] = bitcast_from_u64(raw_arg, stmt->ret_type);
Expand Down

0 comments on commit 730d4ef

Please sign in to comment.