From f1121f02ab7d0898cbf9a5fb760bed91c167c421 Mon Sep 17 00:00:00 2001 From: Sidney Just Date: Sat, 12 Jun 2021 15:30:36 -0700 Subject: [PATCH] Fixed SPIR-V remapper not remapping OpExtInst instruction set IDs --- SPIRV/SPVRemapper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SPIRV/SPVRemapper.cpp b/SPIRV/SPVRemapper.cpp index 56d7f43..56d6d5d 100644 --- a/SPIRV/SPVRemapper.cpp +++ b/SPIRV/SPVRemapper.cpp @@ -544,6 +544,9 @@ namespace spv { // Extended instructions: currently, assume everything is an ID. // TODO: add whatever data we need for exceptions to that if (opCode == spv::OpExtInst) { + + idFn(asId(word)); // Instruction set is an ID that also needs to be mapped + word += 2; // instruction set, and instruction from set numOperands -= 2; -- 2.7.4