Skip to content

Commit

Permalink
Add ASTSerializer::visit(ReferenceExpression *)
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed May 15, 2022
1 parent 6bbaf52 commit f6cca31
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 f6cca31

Please sign in to comment.