Skip to content

Commit 81d6754

Browse files
Copilotjkotas
andauthored
Remove duplicate ProcessorArchitecture.MSIL branch in AssemblyNameParser (#127173)
`AssemblyNameParser.TryParseProcessorArchitecture` contained two identical `msil` arms in its switch expression. The second was unreachable dead code — the first arm always matched first. Fixes #127172 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
1 parent 6323aec commit 81d6754

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/libraries/Common/src/System/Reflection/AssemblyNameParser.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ _ when attributeValue.Equals("x86", StringComparison.OrdinalIgnoreCase) => Proce
333333
_ when attributeValue.Equals("ia64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.IA64,
334334
_ when attributeValue.Equals("amd64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Amd64,
335335
_ when attributeValue.Equals("arm", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Arm,
336-
_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL,
337336
_ => ProcessorArchitecture.None
338337
};
339338
return result != ProcessorArchitecture.None;

0 commit comments

Comments
 (0)