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:
Sean Callanan 2011-04-07 01:56:01 +00:00
parent f16f4e09ec
commit 5c3a245f3c

View File

@ -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);