mirror of
https://github.com/libretro/glslang.git
synced 2025-02-21 07:50:52 +00:00
Comment out some dead assignments per suggestion from static analysis tools.
Code is left in as comments for clarity to humans.
This commit is contained in:
parent
a417f01041
commit
465a14666a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user