forked from OSchip/llvm-project
[BOLT] Fix call to evaluateX86MemOperands
Summary: There was a call site not providing a displament immediate value. This assertion is firing in opensource. (cherry picked from FBD8576033)
This commit is contained in:
parent
8f717dd25e
commit
5b2eab6538
|
@ -2309,10 +2309,11 @@ public:
|
|||
int64_t ScaleValue;
|
||||
unsigned IndexRegNum;
|
||||
const MCExpr *DispExpr = nullptr;
|
||||
int64_t DispValue;
|
||||
unsigned SegRegNum;
|
||||
if (!evaluateX86MemoryOperand(Instr, &BaseRegNum,
|
||||
&ScaleValue, &IndexRegNum,
|
||||
nullptr, &SegRegNum, &DispExpr))
|
||||
&DispValue, &SegRegNum, &DispExpr))
|
||||
break;
|
||||
if (BaseRegNum != RegInfo->getProgramCounter() ||
|
||||
IndexRegNum != X86::NoRegister ||
|
||||
|
|
Loading…
Reference in New Issue