From ea9ee202bb9f54dfb09d35ce67559708e348a91a Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 23 Jul 2019 10:18:50 -0700 Subject: [PATCH] Clear jump tables when function data is cleared --- cranelift/codegen/src/ir/function.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cranelift/codegen/src/ir/function.rs b/cranelift/codegen/src/ir/function.rs index 8eea542564..1dcdeee91c 100644 --- a/cranelift/codegen/src/ir/function.rs +++ b/cranelift/codegen/src/ir/function.rs @@ -113,6 +113,7 @@ impl Function { self.encodings.clear(); self.locations.clear(); self.offsets.clear(); + self.jt_offsets.clear(); self.srclocs.clear(); }