mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 21:30:07 +00:00
Optimizer: Line and NoLine are not debug1 or debug2
Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/911
This commit is contained in:
parent
cfd95f3d5a
commit
98072b749f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user