Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] Remove ndarray element shape from extra arg buffer #5100

Merged
merged 11 commits into from
Jun 7, 2022
Prev Previous commit
Next Next commit
Fix var name.
turbo0628 committed Jun 7, 2022
commit d5dcc910e29cde6c109b8b26c15c321b3c8f8501
2 changes: 1 addition & 1 deletion taichi/codegen/codegen_llvm.cpp
Original file line number Diff line number Diff line change
@@ -1648,7 +1648,7 @@ void CodeGenLLVM::visit(ExternalPtrStmt *stmt) {
}
linear_index = builder->CreateAdd(linear_index, llvm_val[stmt->indices[i]]);
}
TI_ASSERT(array_index == num_indices - element_shape.size())
TI_ASSERT(size_var_index == num_indices - element_shape.size())
llvm_val[stmt] = builder->CreateGEP(base, linear_index);
}