diff --git a/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs b/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs index eb5dbaa353c..3e835ed246e 100644 --- a/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs +++ b/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs @@ -347,7 +347,6 @@ private void ProcessLocalFunction(ControlFlowGraph cfg, IMethodSymbol method) { ProcessedLocalFunctions.Add(localFunction); var localFunctionCfg = cfg.FindLocalFunctionCfgInScope(localFunction, owner.Cancel); - foreach (var block in localFunctionCfg.Blocks.Reverse()) // Simplified approach, ignoring branching and try/catch/finally flows { ProcessBlock(localFunctionCfg, block);