Upstream icsharpcode/ILSpy state of the touched files before b3c37fd8d4

This commit is contained in:
upstream committed 2026-10-10 13:18:39 +02:00
1 parent 72e7db13fa
commit ef47a24511
4 files changed
+1931 -16

No files matched your search

@@ -942,10 +942,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms
for (int i = 0; i < childIndex; ++i)
{
ILInstruction predecessor = inst.Parent.Children[i];
// The variable of a named argument only exists within its block,
// so only the stored value can interfere with the moved expression.
if (predecessor is StLoc { Variable.Kind: VariableKind.NamedArgument } namedArgument)
predecessor = namedArgument.Value;
if (!IsSafeForInlineOver(predecessor, expressionBeingMoved))
return false;
}