From aea755fd327456566ec8eb4e46d8da9426b9b208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Sat, 18 Sep 2021 21:32:24 +0100 Subject: [PATCH] [spv-in] Allow OpLine anywhere in the function --- src/front/spv/function.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/front/spv/function.rs b/src/front/spv/function.rs index 1317b755f4..8814bb59b4 100644 --- a/src/front/spv/function.rs +++ b/src/front/spv/function.rs @@ -141,6 +141,12 @@ impl> super::Parser { let fun_inst = self.next_inst()?; log::debug!("{:?}", fun_inst.op); match fun_inst.op { + spirv::Op::Line => { + fun_inst.expect(4)?; + let _file_id = self.next()?; + let _row_id = self.next()?; + let _col_id = self.next()?; + } spirv::Op::Label => { // Read the label ID fun_inst.expect(2)?;