Optimizer: Line and NoLine are not debug1 or debug2

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/911
This commit is contained in:
David Neto 2017-10-23 10:53:28 -04:00 committed by Lei Zhang
parent cfd95f3d5a
commit 98072b749f

View File

@ -26,11 +26,10 @@ namespace ir {
inline bool IsDebug1Inst(SpvOp opcode) {
return (opcode >= SpvOpSourceContinued && opcode <= SpvOpSourceExtension) ||
opcode == SpvOpString || opcode == SpvOpLine || opcode == SpvOpNoLine;
opcode == SpvOpString;
}
inline bool IsDebug2Inst(SpvOp opcode) {
return opcode == SpvOpName || opcode == SpvOpMemberName ||
opcode == SpvOpNoLine;
return opcode == SpvOpName || opcode == SpvOpMemberName;
}
inline bool IsDebug3Inst(SpvOp opcode) {
return opcode == SpvOpModuleProcessed;