@@ -530,10 +530,11 @@ class GroupOpRewriter : public StmtExprMutator {
530530        block_stmt.push_back (block->body );
531531        cur_id++;
532532      }
533-       new_body.push_back (MakeGroupBlock (block_stmt.size () == 1 
534-                                             ? block_stmt[0 ]
535-                                             : SeqStmt (std::move (block_stmt)),
536-                                         annotations));
533+       new_body.push_back (MakeGroupBlock (
534+           block_stmt.size () == 1  ? block_stmt[0 ]
535+                                  //  NOLINTNEXTLINE(performance-move-const-arg)
536+                                  : SeqStmt (std::move (block_stmt)),
537+           annotations));
537538    }
538539    Array<Integer> order_anno;
539540    Array<Integer> stage_anno;
@@ -697,10 +698,12 @@ class WSCodeEmitter : public StmtMutator {
697698            continue ;
698699          if  (marker_.GetRole (op->seq [i]) == Role::kBoth ) {
699700            block_stmt.push_back (seq_transformed[i]);
700-             new_body.push_back (MakeGroupBlock (
701-                 block_stmt.size () == 1  ? block_stmt[0 ]
702-                                        : SeqStmt (std::move (block_stmt)),
703-                 annotations));
701+             new_body.push_back (
702+                 MakeGroupBlock (block_stmt.size () == 1 
703+                                    ? block_stmt[0 ]
704+                                    //  NOLINTNEXTLINE(performance-move-const-arg)
705+                                    : SeqStmt (std::move (block_stmt)),
706+                                annotations));
704707            continue ;
705708          }
706709        }
@@ -734,10 +737,12 @@ class WSCodeEmitter : public StmtMutator {
734737            }
735738          }
736739          collector.Clear ();
737-           new_body.push_back (MakeGroupBlock (
738-               block_stmt.size () == 1  ? block_stmt[0 ]
739-                                      : SeqStmt (std::move (block_stmt)),
740-               annotations));
740+           new_body.push_back (
741+               MakeGroupBlock (block_stmt.size () == 1 
742+                                  ? block_stmt[0 ]
743+                                  //  NOLINTNEXTLINE(performance-move-const-arg)
744+                                  : SeqStmt (std::move (block_stmt)),
745+                              annotations));
741746        }
742747      }
743748    } else  { //  consumer case
@@ -766,10 +771,11 @@ class WSCodeEmitter : public StmtMutator {
766771            }
767772          }
768773        }
769-         new_body.push_back (MakeGroupBlock (block_stmt.size () == 1 
770-                                               ? block_stmt[0 ]
771-                                               : SeqStmt (std::move (block_stmt)),
772-                                           annotations));
774+         new_body.push_back (MakeGroupBlock (
775+             block_stmt.size () == 1  ? block_stmt[0 ]
776+                                    //  NOLINTNEXTLINE(performance-move-const-arg)
777+                                    : SeqStmt (std::move (block_stmt)),
778+             annotations));
773779      }
774780      //  Filter out the producer stmts
775781      int  cur_id = 0 ;
0 commit comments