Skip to content

Commit 301cb81

Browse files
Fix CA2021 in MethodBodyScanner (#81200)
1 parent 7bc3c1d commit 301cb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Dataflow/MethodBodyScanner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public virtual void InterproceduralScan(MethodIL startingMethodBody)
319319
// are the same set of methods that we discovered and scanned above.
320320
if (_annotations.CompilerGeneratedState.TryGetCompilerGeneratedCalleesForUserMethod(startingMethod, out List<TypeSystemEntity>? compilerGeneratedCallees))
321321
{
322-
var calleeMethods = compilerGeneratedCallees.OfType<MethodDefinition>();
322+
var calleeMethods = compilerGeneratedCallees.OfType<MethodDesc>();
323323
// https://github.com/dotnet/linker/issues/2845
324324
// Disabled asserts due to a bug
325325
// Debug.Assert (interproceduralState.Count == 1 + calleeMethods.Count ());

0 commit comments

Comments
 (0)