Merge pull request #18 from srk-lunarg/v30_static_analysis_fixes
Comment out some dead assignments per suggestion from static analysis…
This commit is contained in:
commit
ace4c45afc
@ -450,11 +450,12 @@ namespace spv {
|
|||||||
return nextInst;
|
return nextInst;
|
||||||
|
|
||||||
case spv::OperandVariableLiterals:
|
case spv::OperandVariableLiterals:
|
||||||
if (opCode == spv::OpDecorate && asDecoration(word - 1) == spv::DecorationBuiltIn) {
|
// for clarity
|
||||||
++word;
|
// if (opCode == spv::OpDecorate && asDecoration(word - 1) == spv::DecorationBuiltIn) {
|
||||||
--numOperands;
|
// ++word;
|
||||||
}
|
// --numOperands;
|
||||||
word += numOperands;
|
// }
|
||||||
|
// word += numOperands;
|
||||||
return nextInst;
|
return nextInst;
|
||||||
|
|
||||||
case spv::OperandVariableLiteralId:
|
case spv::OperandVariableLiteralId:
|
||||||
@ -466,7 +467,7 @@ namespace spv {
|
|||||||
return nextInst;
|
return nextInst;
|
||||||
|
|
||||||
case spv::OperandLiteralString:
|
case spv::OperandLiteralString:
|
||||||
word += literalStringWords(literalString(word));
|
// word += literalStringWords(literalString(word)); // for clarity
|
||||||
return nextInst;
|
return nextInst;
|
||||||
|
|
||||||
// Single word operands we simply ignore, as they hold no IDs
|
// Single word operands we simply ignore, as they hold no IDs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user