@@ -1362,7 +1362,7 @@ struct to_ir {
13621362 auto body = stmt.body ();
13631363 if (stmt.itrs ().size () != 1 ) {
13641364 throw ErrorReport (stmt)
1365- << " List of iterables is not supported currently. " ;
1365+ << " List of iterables is not supported currently" ;
13661366 }
13671367 // Emit loop information for builtinFunction values like range(), zip(),
13681368 // enumerate() or SimpleValue like List, Tensor, Dict, etc.
@@ -1464,19 +1464,19 @@ struct to_ir {
14641464 num_starred++;
14651465 } else {
14661466 throw ErrorReport (assignee) << " lhs of assignment must be a variable, "
1467- << " subscript, or starred expression. " ;
1467+ << " subscript, or starred expression" ;
14681468 }
14691469 }
14701470
14711471 if (num_starred > 1 ) {
14721472 throw ErrorReport (r)
1473- << " Only one starred expression is allowed on the lhs. " ;
1473+ << " Only one starred expression is allowed on the lhs" ;
14741474 }
14751475
14761476 if (num_starred > 0 && num_normal_assign == 0 ) {
14771477 throw ErrorReport (r) << " A Starred expression may only appear on the "
14781478 << " lhs within the presence of another non-starred"
1479- << " expression. " ;
1479+ << " expression" ;
14801480 }
14811481
14821482 return num_starred;
@@ -1523,7 +1523,7 @@ struct to_ir {
15231523 default :
15241524 throw ErrorReport (stmt.lhs ())
15251525 << " unexpected expression on "
1526- << " left-hand side of augmented assignment. " ;
1526+ << " left-hand side of augmented assignment" ;
15271527 }
15281528 }
15291529
@@ -1665,7 +1665,7 @@ struct to_ir {
16651665 throw ErrorReport (subscriptExprs)
16661666 << " Sliced expression not yet supported for"
16671667 << " subscripted list augmented assignment. "
1668- << " File a bug if you want this. " ;
1668+ << " File a bug if you want this" ;
16691669 }
16701670 const auto idxValue = emitExpr (subscriptExprs[0 ]);
16711671
@@ -1735,7 +1735,7 @@ struct to_ir {
17351735 throw ErrorReport (subscript)
17361736 << " Sliced expression not yet supported for"
17371737 << " subscripted list assignment. "
1738- << " File a bug if you want this. " ;
1738+ << " File a bug if you want this" ;
17391739 }
17401740
17411741 std::vector<NamedValue> args;
@@ -1798,7 +1798,7 @@ struct to_ir {
17981798 auto var = Starred (assignee).expr ();
17991799 if (var.kind () != TK_VAR) {
18001800 throw ErrorReport (var)
1801- << " Cannot pack a tuple into a non-variable. " ;
1801+ << " Cannot pack a tuple into a non-variable" ;
18021802 }
18031803 size_t n_matched = outputs.size () - n_binders;
18041804 ArrayRef<std::shared_ptr<SugaredValue>> outputs_ref = outputs;
@@ -1850,7 +1850,7 @@ struct to_ir {
18501850 break ;
18511851 default :
18521852 throw ErrorReport (stmt.lhs ())
1853- << " unexpected expression on left-hand side of assignment. " ;
1853+ << " unexpected expression on left-hand side of assignment" ;
18541854 }
18551855 }
18561856
@@ -2443,7 +2443,7 @@ struct to_ir {
24432443 }
24442444 case TK_STARRED: {
24452445 throw ErrorReport (tree)
2446- << " Unexpected starred expansion. File a bug report. " ;
2446+ << " Unexpected starred expansion. File a bug report" ;
24472447 }
24482448 case TK_CONST: {
24492449 return emitConst (Const (tree));
@@ -2751,7 +2751,7 @@ struct to_ir {
27512751 if (!sliceable->type ()->isSubtypeOf (TensorType::get ())) {
27522752 throw ErrorReport (loc)
27532753 << " Unsupported operation: attempted to use multidimensional "
2754- << " indexing on a non-tensor type. " ;
2754+ << " indexing on a non-tensor type" ;
27552755 }
27562756
27572757 std::vector<Value*> tensor_indices;
0 commit comments