Skip to content

Commit 0a9fa7b

Browse files
Validation: Push value on local.tee even if the frame is unreachable
1 parent 0d66e17 commit 0a9fa7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/WasmKit/Translator.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,6 @@ struct InstructionTranslator<Context: TranslatorContext>: InstructionVisitor {
15771577
try visitLocalSetOrTee(localIndex: localIndex, isTee: false)
15781578
}
15791579
mutating func visitLocalTee(localIndex: UInt32) throws -> Output {
1580-
guard try controlStack.currentFrame().reachable else { return }
15811580
try visitLocalSetOrTee(localIndex: localIndex, isTee: true)
15821581
_ = try valueStack.pushLocal(localIndex, locals: &locals)
15831582
}

0 commit comments

Comments
 (0)