Skip to content

Commit

Permalink
Update taichi/transforms/type_check.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Yi Xu <xy_xuyi@foxmail.com>
  • Loading branch information
squarefk and strongoier authored Jul 29, 2021
1 parent cecb91e commit 73ec3f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions taichi/transforms/type_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ class TypeCheck : public IRVisitor {

void visit(GlobalTensorElementStmt *stmt) override {
// TODO: do actual type_check
TI_ASSERT(stmt->origin->is<GlobalPtrStmt>()));
stmt->origin->accept(this);
stmt->ret_type.set_is_pointer(true);
}

Expand Down

0 comments on commit 73ec3f0

Please sign in to comment.