Skip to content

Commit

Permalink
Update DMCompiler/Optimizer/PeepholeOptimizations.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 authored Oct 21, 2024
1 parent c18eb49 commit 6a986d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMCompiler/Optimizer/PeepholeOptimizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public void Apply(List<IAnnotatedBytecode> input, int index) {
// Otherwise, replace with PushNOfStringFloat

int stackDelta = 0;
List<IAnnotatedBytecode> args = new List<IAnnotatedBytecode>(2 * count + 1);
List<IAnnotatedBytecode> args = new List<IAnnotatedBytecode>(2 * count + 1) { new AnnotatedBytecodeInteger(count, input[index].GetLocation()) };

Check notice

Code scanning / InspectCode

Use object or collection initializer when possible Note

Use collection initializer
args.Add(new AnnotatedBytecodeInteger(count, input[index].GetLocation()));

for (int i = 0; i < count; i++) {
Expand Down

0 comments on commit 6a986d2

Please sign in to comment.