From 9846a8517426b3b6fcd73012e961ea23c8c0bee2 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 16 Mar 2021 21:47:29 -0400 Subject: [PATCH] [spv-in] patch calls from the entry points --- src/front/spv/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/front/spv/mod.rs b/src/front/spv/mod.rs index 9e35bd5f87..bac5cd0087 100644 --- a/src/front/spv/mod.rs +++ b/src/front/spv/mod.rs @@ -1809,8 +1809,9 @@ impl> Parser { for (_, fun) in module.functions.iter_mut() { self.patch_function_calls(fun)?; } - // Note: we aren't patching the entry point functions, because they are simply - // wrappers behind real functions, and are already resolved. + for ep in module.entry_points.iter_mut() { + self.patch_function_calls(&mut ep.function)?; + } // Check all the images and samplers to have consistent comparison property. for (handle, flags) in self.handle_sampling.drain() {