[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:
Rafael Auler 2018-06-21 11:03:57 -07:00 committed by Maksim Panchenko
parent 8f717dd25e
commit 5b2eab6538
1 changed files with 2 additions and 1 deletions

View File

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