mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Fixed a bug where missing EDInstInfo would cause
tokenization to crash and burn. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129051 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f16f4e09ec
commit
5c3a245f3c
@ -165,6 +165,9 @@ int EDInst::getOperand(EDOperand *&operand, unsigned int index) {
|
||||
int EDInst::tokenize() {
|
||||
if (TokenizeResult.valid())
|
||||
return TokenizeResult.result();
|
||||
|
||||
if (ThisInstInfo == NULL)
|
||||
return TokenizeResult.setResult(-1);
|
||||
|
||||
if (stringify())
|
||||
return TokenizeResult.setResult(-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user