From 8e71345eac701c8bf3d7454a9987e3224aaa5768 Mon Sep 17 00:00:00 2001 From: Alexander Wood Date: Thu, 7 Dec 2023 16:15:15 +0000 Subject: [PATCH] ? --- src/JVM/Data/Analyse/StackMap.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JVM/Data/Analyse/StackMap.hs b/src/JVM/Data/Analyse/StackMap.hs index 7190dd6..82e0b15 100644 --- a/src/JVM/Data/Analyse/StackMap.hs +++ b/src/JVM/Data/Analyse/StackMap.hs @@ -105,8 +105,8 @@ analyseBlockDiff current block = foldl' (flip analyseInstruction) current (takeW analyseInstruction (InvokeInterface _ _ md) ba = ba{stack = (StackEntry <$> maybeToList (returnDescriptorType md.returnDesc)) <> drop (length md.params) ba.stack} analyseInstruction (InvokeDynamic _ _ md) ba = ba{stack = (StackEntry <$> maybeToList (returnDescriptorType md.returnDesc)) <> drop (1 + length md.params) ba.stack} analyseInstruction (PutStatic{}) ba = ba{stack = tail ba.stack} - analyseInstruction (GetField _ _ ft) ba = ba{stack = StackEntry (ft t) : tail ba.stack} - analyseInstruction (GetStatic _ _ ft) ba = ba{stack = StackEntry (ft t) : ba.stack} + analyseInstruction (GetField _ _ ft) ba = ba{stack = StackEntry ft : tail ba.stack} + analyseInstruction (GetStatic _ _ ft) ba = ba{stack = StackEntry ft : ba.stack} analyseInstruction (Goto _) ba = ba analyseInstruction (LDC l) ba = ba{stack = StackEntry (ldcEntryToFieldType l) : ba.stack}