Skip to content

Commit

Permalink
[autodiff] Handle return statement (#7389)
Browse files Browse the repository at this point in the history
Issue: #7378

### Brief Summary
  • Loading branch information
erizmr authored Feb 23, 2023
1 parent 499834b commit 6170861
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taichi/transforms/auto_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ class ADTransform : public IRVisitor {
// do nothing
}

void visit(ReturnStmt *stmt) override {
// do nothing
}

void visit(WhileControlStmt *stmt) override {
TI_NOT_IMPLEMENTED
}
Expand Down

0 comments on commit 6170861

Please sign in to comment.