From 83f4e1289c98903cd20f446a8f2f26731125726c Mon Sep 17 00:00:00 2001 From: Mikhail Kocharmin Date: Tue, 26 Mar 2024 13:58:00 +0300 Subject: [PATCH] fix select_array_conf pass for nested loops --- .../Sapfor_2017/_src/GraphCall/select_array_conf.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sapfor/experts/Sapfor_2017/_src/GraphCall/select_array_conf.cpp b/sapfor/experts/Sapfor_2017/_src/GraphCall/select_array_conf.cpp index 8302950..b4567c7 100644 --- a/sapfor/experts/Sapfor_2017/_src/GraphCall/select_array_conf.cpp +++ b/sapfor/experts/Sapfor_2017/_src/GraphCall/select_array_conf.cpp @@ -121,11 +121,9 @@ static void preventLoopsFromParallelizations(LoopGraph* loop, const setchildren) - preventLoopsFromParallelizations(child, prevent, createdDirectives, messagesForFile); - } + + for (LoopGraph* child : loop->children) + preventLoopsFromParallelizations(child, prevent, createdDirectives, messagesForFile); } struct DimConf