From 465a14666adf16295ced556f1abf38729f330add Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 15 Jul 2015 14:34:35 -0600 Subject: [PATCH] Comment out some dead assignments per suggestion from static analysis tools. Code is left in as comments for clarity to humans. --- SPIRV/SPVRemapper.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SPIRV/SPVRemapper.cpp b/SPIRV/SPVRemapper.cpp index 76d47729..3cec0e50 100644 --- a/SPIRV/SPVRemapper.cpp +++ b/SPIRV/SPVRemapper.cpp @@ -450,11 +450,12 @@ namespace spv { return nextInst; case spv::OperandVariableLiterals: - if (opCode == spv::OpDecorate && asDecoration(word - 1) == spv::DecorationBuiltIn) { - ++word; - --numOperands; - } - word += numOperands; + // for clarity + // if (opCode == spv::OpDecorate && asDecoration(word - 1) == spv::DecorationBuiltIn) { + // ++word; + // --numOperands; + // } + // word += numOperands; return nextInst; case spv::OperandVariableLiteralId: @@ -466,7 +467,7 @@ namespace spv { return nextInst; case spv::OperandLiteralString: - word += literalStringWords(literalString(word)); + // word += literalStringWords(literalString(word)); // for clarity return nextInst; // Single word operands we simply ignore, as they hold no IDs