Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/linker/Linker.Dataflow/FlowAnnotations.cs')
-rw-r--r--src/linker/Linker.Dataflow/FlowAnnotations.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker/Linker.Dataflow/FlowAnnotations.cs b/src/linker/Linker.Dataflow/FlowAnnotations.cs
index 183e55ce1..45d1bc073 100644
--- a/src/linker/Linker.Dataflow/FlowAnnotations.cs
+++ b/src/linker/Linker.Dataflow/FlowAnnotations.cs
@@ -418,7 +418,7 @@ namespace ILLink.Shared.TrimAnalysis
FieldReference? foundReference = null;
- foreach (Instruction instruction in body.Instructions) {
+ foreach (Instruction instruction in _context.GetMethodIL (body).Instructions) {
switch (instruction.OpCode.Code) {
case Code.Ldsfld when !write:
case Code.Ldfld when !write: