From 3c91814de5ba63d10d1c969c03411f649372112e Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Wed, 11 Dec 2024 07:54:49 +0100 Subject: [PATCH] Fixed segfault --- unit_tests/recipes/Test_ToGenericOp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit_tests/recipes/Test_ToGenericOp.cpp b/unit_tests/recipes/Test_ToGenericOp.cpp index 1cc5d144e..cb75fdb10 100644 --- a/unit_tests/recipes/Test_ToGenericOp.cpp +++ b/unit_tests/recipes/Test_ToGenericOp.cpp @@ -63,7 +63,8 @@ TEST_CASE("[graph/convert] toGenericOp", "[toGenericOp][recipies]") { std::shared_ptr<Node> metaOpNode; - for (const auto& nodePtr : g->getNodes()) + const auto nodes = g->getNodes(); // g nodes gets modified in the loop! + for (const auto& nodePtr : nodes) { if (nodePtr->type() == "ConvReLUFC") { -- GitLab