Fix dump of common methods diff (#33570)
authorJan Vorlicek <janvorli@microsoft.com>
Sat, 14 Mar 2020 02:22:09 +0000 (03:22 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2020 02:22:09 +0000 (19:22 -0700)
The DiffMethodsForModule was accidentally trying to get leftSection from
the right dumper.

src/coreclr/src/tools/r2rdump/R2RDiff.cs

index e1134bb..74ef911 100644 (file)
@@ -97,7 +97,7 @@ namespace R2RDump
             {
                 leftSectionMethods = new List<ReadyToRunMethod>();
             }
-            if (!_rightDumper.Reader.Methods.TryGetValue(leftSection, out List<ReadyToRunMethod> rightSectionMethods))
+            if (!_rightDumper.Reader.Methods.TryGetValue(rightSection, out List<ReadyToRunMethod> rightSectionMethods))
             {
                 rightSectionMethods = new List<ReadyToRunMethod>();
             }