Skip to content

Commit

Permalink
[misc] Add ASTSerializer::visit(ReferenceExpression *) (#4984)
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB authored May 16, 2022
1 parent 6bbaf52 commit 368f3b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions taichi/analysis/gen_offline_cache_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ class ASTSerializer : public IRVisitor, public ExpressionVisitor {
emit(expr->conv_type);
}

void visit(ReferenceExpression *expr) override {
emit(ExprOpCode::ReferenceExpression);
emit(expr->var);
}

void visit(Block *block) override {
emit(StmtOpCode::EnterBlock);
emit(static_cast<std::size_t>(block->statements.size()));
Expand Down

0 comments on commit 368f3b3

Please sign in to comment.