diff --git a/taichi/ir/expr.cpp b/taichi/ir/expr.cpp index 20ea0cd594fbe..552e029bcf6d4 100644 --- a/taichi/ir/expr.cpp +++ b/taichi/ir/expr.cpp @@ -179,9 +179,9 @@ Expr load(const Expr &ptr) { Expr ptr_if_global(const Expr &var) { if (var.is()) { // 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