diff options
author | Tlakaelel Axayakatl Ceja <tlakaelel_axayakatl@outlook.com> | 2022-09-01 23:02:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 23:02:43 +0300 |
commit | ab2d195f169a08bf8eb978b472b2d3aca61b0a46 (patch) | |
tree | 4e441a8841728347e13d9a14f0b457340d134ef1 /src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs | |
parent | 7a45201181d37329b7ab0bee541ed7c42b5d94b6 (diff) |
Run code quality analyzers in the coreclr/tools directory (#74825)
Run codeanalysis analyzers in the coreclr/tools directory
Diffstat (limited to 'src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs')
-rw-r--r-- | src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs b/src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs index fb97127666e..97c4feb5cfb 100644 --- a/src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs +++ b/src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetGenerator.cs @@ -375,11 +375,9 @@ namespace Internal.ReadyToRunConstants // FROM /src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetDesc.txt // using /src/coreclr/tools/Common/JitInterface/ThunkGenerator/gen.bat -using System; using System.Collections; using System.Collections.Generic; using System.Linq; -using System.Runtime.InteropServices; using Internal.TypeSystem; namespace Internal.JitInterface @@ -522,7 +520,7 @@ namespace Internal.JitInterface public IEnumerator<InstructionSet> GetEnumerator() { - for (int i = 1; i < (int)InstructionSet.NONE; i ++) + for (int i = 1; i < (int)InstructionSet.NONE; i++) { InstructionSet instructionSet = (InstructionSet)i; if (HasInstructionSet(instructionSet)) @@ -581,12 +579,12 @@ namespace Internal.JitInterface public static InstructionSetFlags ExpandInstructionSetByImplicationHelper(TargetArchitecture architecture, InstructionSetFlags input) { - InstructionSetFlags oldflags = input; + InstructionSetFlags oldflags; InstructionSetFlags resultflags = input; do { oldflags = resultflags; - switch(architecture) + switch (architecture) { "); foreach (string architecture in _architectures) @@ -624,7 +622,7 @@ namespace Internal.JitInterface private static InstructionSetFlags ExpandInstructionSetByReverseImplicationHelper(TargetArchitecture architecture, InstructionSetFlags input) { - InstructionSetFlags oldflags = input; + InstructionSetFlags oldflags; InstructionSetFlags resultflags = input; do { |