diff options
author | Romaric Jodin <89833130+rjodinchr@users.noreply.github.com> | 2022-09-10 05:04:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 05:04:47 +0200 |
commit | 1546d21268107604357555bec3311432558e7a0f (patch) | |
tree | 7b9a2845456a4c296670ce03ed8437cc661f1b8f | |
parent | 8d7b271a6f681ee154b5dc77dcc707bd21a99cc0 (diff) | |
download | compiler-explorer-gh-4185.tar.gz compiler-explorer-gh-4185.zip |
asm-parser-spirv: take OpNoLine into account (#4040)gh-4185
-rw-r--r-- | lib/parsers/asm-parser-spirv.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/parsers/asm-parser-spirv.ts b/lib/parsers/asm-parser-spirv.ts index 47479e722..9e165d039 100644 --- a/lib/parsers/asm-parser-spirv.ts +++ b/lib/parsers/asm-parser-spirv.ts @@ -60,6 +60,7 @@ export class SPIRVAsmParser extends AsmParser { const endBlock = /OpFunctionEnd/; const comment = /;/; const opLine = /OpLine/; + const opNoLine = /OpNoLine/; const opExtDbg = /OpExtInst\s+%void\s+%\d+\s+Debug/; let source: any = null; @@ -77,7 +78,7 @@ export class SPIRVAsmParser extends AsmParser { } } - if (endBlock.test(line)) { + if (endBlock.test(line) || opNoLine.test(line)) { source = null; } @@ -85,7 +86,7 @@ export class SPIRVAsmParser extends AsmParser { continue; } if (filters.directives) { - if (opLine.test(line) || opExtDbg.test(line)) { + if (opLine.test(line) || opExtDbg.test(line) || opNoLine.test(line)) { continue; } } |