Browse Source

Fix exception when handling unknown opcodes

dev/git-series/gccdum
Matt Godbolt 6 years ago
parent
commit
ca75d5a7ea
  1. 2
      etc/scripts/docenizer.py
  2. 4
      lib/asm-docs.js

2
etc/scripts/docenizer.py

@ -39,7 +39,7 @@ with open(args.outputpath, 'w') as f:
function getAsmOpcode(opcode) {\n\
if (!opcode) return;\n\
var token = tokens[opcode.toUpperCase()];\n\
token.opcode = opcode;\n\
if (token) token.opcode = opcode;\n\
return token;\n\
}\n\
\n\

4
lib/asm-docs.js

@ -486,7 +486,9 @@ var tokens = {
function getAsmOpcode(opcode) {
if (!opcode) return;
var token = tokens[opcode.toUpperCase()];
token.opcode = opcode;
if (token) {
token.opcode = opcode;
}
return token;
}

Loading…
Cancel
Save