Skip to content

Commit

Permalink
[bug] Fix master due to compilation error (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ye authored Jul 2, 2020
1 parent 8faf2b2 commit 2b181a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions taichi/ir/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ Expr load(const Expr &ptr) {
Expr ptr_if_global(const Expr &var) {
if (var.is<GlobalVariableExpression>()) {
// singleton global variable
TI_ASSERT_INFO(
var.snode()->num_active_indices == 0,
"Please always use 'x[None]' (instead of simply 'x') to access any 0-D tensor."
TI_ASSERT_INFO(var.snode()->num_active_indices == 0,
"Please always use 'x[None]' (instead of simply 'x') to "
"access any 0-D tensor.");
return var[ExprGroup()];
} else {
// may be any local or global expr
Expand Down

0 comments on commit 2b181a2

Please sign in to comment.