diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-02-28 21:36:31 -0600 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2022-02-28 21:36:31 -0600 |
commit | 3cda1776ebaae9e88567a87bbad034590eafa25e (patch) | |
tree | 6692017d1de889426ef9a7e8f95fb54b9a187864 /lib/parsers/asm-parser.js | |
parent | afa4f183df2b1d27083e6df3adcee11d0111faa6 (diff) | |
download | compiler-explorer-gh-2141.tar.gz compiler-explorer-gh-2141.zip |
Handle lines with no opcodesgh-2141
Fixes #3276
Diffstat (limited to 'lib/parsers/asm-parser.js')
-rw-r--r-- | lib/parsers/asm-parser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsers/asm-parser.js b/lib/parsers/asm-parser.js index 6893993a9..d5440e96e 100644 --- a/lib/parsers/asm-parser.js +++ b/lib/parsers/asm-parser.js @@ -26,7 +26,7 @@ import _ from 'underscore'; import * as utils from '../utils'; -import { AsmRegex } from './asmregex'; +import {AsmRegex} from './asmregex'; export class AsmParser extends AsmRegex { constructor(compilerProps) { @@ -617,7 +617,7 @@ export class AsmParser extends AsmRegex { match = line.match(this.asmOpcodeRe); if (match) { const address = parseInt(match.groups.address, 16); - const opcodes = match.groups.opcodes.split(' ').filter(x => !!x); + const opcodes = (match.groups.opcodes || '').split(' ').filter(x => !!x); const disassembly = ' ' + AsmRegex.filterAsmLine(match.groups.disasm, filters); const destMatch = line.match(this.destRe); if (destMatch) { |