Skip to content

Commit

Permalink
[ir] Remove "kernel" when printing ReturnStmt (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
xumingkuan authored May 19, 2021
1 parent 225bcc6 commit c9e491d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/transforms/ir_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@ class IRPrinter : public IRVisitor {
}

void visit(FrontendReturnStmt *stmt) override {
print("{}{} : kernel return {}", stmt->type_hint(), stmt->name(),
print("{}{} : return {}", stmt->type_hint(), stmt->name(),
stmt->value->serialize());
}

void visit(ReturnStmt *stmt) override {
print("{}{} : kernel return {}", stmt->type_hint(), stmt->name(),
print("{}{} : return {}", stmt->type_hint(), stmt->name(),
stmt->value->name());
}

Expand Down

0 comments on commit c9e491d

Please sign in to comment.