Skip to content

Commit

Permalink
[wasm] Update taichi/backends/wasm/codegen_wasm.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Ye Kuang <[email protected]>
  • Loading branch information
squarefk and k-ye authored Jun 18, 2021
1 parent 01479ba commit 1745649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/backends/wasm/codegen_wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CodeGenLLVMWASM : public CodeGenLLVM {
int pos = kernel_name.length() - 1;
int underline_count = 0;
int redundant_count = 3;
// see python/taichi/lang/kernel_impl.py, line 360
// https://github.com/taichi-dev/taichi/blob/026321f906d37b633bffaf8af787e895f2dceb2b/python/taichi/lang/kernel_impl.py#L360-L362
for (; pos >= 0; --pos) {
if (kernel_name.at(pos) == '_') {
underline_count += 1;
Expand Down

0 comments on commit 1745649

Please sign in to comment.