We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac670d commit 07b0efcCopy full SHA for 07b0efc
Sources/WasmKit/Translator.swift
@@ -1578,7 +1578,8 @@ struct InstructionTranslator<Context: TranslatorContext>: InstructionVisitor {
1578
let type = try locals.type(of: localIndex)
1579
let result = localReg(localIndex)
1580
1581
- guard let op = try popOperand(type) else { return }
+ guard try checkBeforePop(typeHint: type) else { return }
1582
+ let op = try valueStack.pop(type)
1583
1584
if case .const(let slotIndex, _) = op {
1585
// Optimize (local.set $x (i32.const $c)) to reg:$x = 42 rather than through const slot
0 commit comments