]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
accessMoved cppcheck error
authorgtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 23 Apr 2024 09:15:12 +0000 (12:15 +0300)
committergtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 23 Apr 2024 09:15:12 +0000 (12:15 +0300)
src/rose/rose_build_merge.cpp

index cddbb760b7640549b3c167c9e4d32a1b6c453d87..6dad3ecda8984e56512cc3bf2d67c861d339bdc9 100644 (file)
@@ -1599,7 +1599,8 @@ void dedupeLeftfixesVariableLag(RoseBuildImpl &build) {
                 continue;
             }
         }
-        engine_groups[DedupeLeftKey(build, std::move(preds), left)].emplace_back(left);
+        auto preds_copy = preds;
+        engine_groups[DedupeLeftKey(build, std::move(preds_copy), left)].emplace_back(left);
     }
 
     /* We don't bother chunking as we expect deduping to be successful if the