Skip to content

Commit 8d8fb8b

Browse files
authored
Remove unused variable, fix typos (#64542)
This PR just cleans up an unused variable and some typos, found when adding the IL scanner to the LLVM backend.
1 parent 6d70f1b commit 8d8fb8b

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/Target_ARM/ARMReadyToRunHelperNode.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ protected override void EmitCode(NodeFactory factory, ref ARMEmitter encoder, bo
142142
}
143143
else
144144
{
145-
ISymbolNode targetMethodNode = target.GetTargetNode(factory);
146145
encoder.EmitMOV(encoder.TargetRegister.Arg2, target.GetTargetNode(factory));
147146
}
148147

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/Target_ARM64/ARM64ReadyToRunHelperNode.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ protected override void EmitCode(NodeFactory factory, ref ARM64Emitter encoder,
147147
}
148148
else
149149
{
150-
ISymbolNode targetMethodNode = target.GetTargetNode(factory);
151150
encoder.EmitMOV(encoder.TargetRegister.Arg2, target.GetTargetNode(factory));
152151
}
153152

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/Target_X64/X64ReadyToRunHelperNode.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ protected override void EmitCode(NodeFactory factory, ref X64Emitter encoder, bo
150150
}
151151
else
152152
{
153-
ISymbolNode targetMethodNode = target.GetTargetNode(factory);
154153
encoder.EmitLEAQ(encoder.TargetRegister.Arg2, target.GetTargetNode(factory));
155154
}
156155

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScanner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ internal override VTableSliceNode GetSlice(TypeDesc type)
270270
{
271271
if (!_vtableSlices.TryGetValue(type, out IReadOnlyList<MethodDesc> slots))
272272
{
273-
// If we couln't find the vtable slice information for this type, it's because the scanner
273+
// If we couldn't find the vtable slice information for this type, it's because the scanner
274274
// didn't correctly predict what will be needed.
275275
// To troubleshoot, compare the dependency graph of the scanner and the compiler.
276276
// Follow the path from the node that requested this node to the root.
@@ -318,7 +318,7 @@ private DictionaryLayoutNode GetPrecomputedLayout(TypeSystemEntity methodOrType)
318318
{
319319
if (!_layouts.TryGetValue(methodOrType, out IEnumerable<GenericLookupResult> layout))
320320
{
321-
// If we couln't find the dictionary layout information for this, it's because the scanner
321+
// If we couldn't find the dictionary layout information for this, it's because the scanner
322322
// didn't correctly predict what will be needed.
323323
// To troubleshoot, compare the dependency graph of the scanner and the compiler.
324324
// Follow the path from the node that requested this node to the root.

0 commit comments

Comments
 (0)