Repository navigation
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
5 of 6 tasks
AlekseyTs
reviewed
Oct 20, 2026
|
|
||
| VisitReceiverBeforeCall(node.ReceiverOpt, node.Method); | ||
|
|
||
| do |
Contributor
There was a problem hiding this comment.
Please switch to while (true) loop. Something like:
do
{
visitArgumentsAndCompleteAnalysis(node);
if (!calls.Any())
{
break;
}
LeaveRegionIfNeeded(node);
node = calls.Pop();
}
``` #Closed
Contributor
|
Done with review pass (commit 1) |
Contributor
|
@nurullahturkoglu Thank you for the contribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #86099
Since #67913,
AbstractFlowPass.VisitCallwalks a chain of receiver calls with an explicit stack, so the receiver calls never go throughVisitAlways. When the region passed toAnalyzeDataFlowis one of those receivers, the region is never entered and the analysis returnsSucceeded == falsewith empty results.This calls
EnterRegionIfNeededfor each receiver call on the way down the chain andLeaveRegionIfNeededafter each one is visited, like #76412 did for binary operators. The outermost call still goes throughVisitAlways, so its region is left only after the state is restored for omitted calls.Added
Repro_86099,CallChainReceiversandCallChainReceiverWithOutArgumenttoRegionAnalysisTests. All three fail without the change and pass with it. The rest of the Emit3 tests pass on macOS arm64 (net10.0), except 263 tests that fail to startilasmbecause only the osx-x64 binary is available here. I haven't run the tests on Windows.I didn't add VB tests. From reading the code, VB's
VisitCallvisits the receiver recursively, so it shouldn't be affected.Microsoft Reviewers: Open in CodeFlow