forked from OSchip/llvm-project
X86: Use operator lookup for operator==, NFC
Avoid relying on the MachineInstrBundleIterator operator== being implemented as a member function. llvm-svn: 278347
This commit is contained in:
parent
43724649c3
commit
62e351f5a4
|
@ -479,8 +479,8 @@ void X86FrameLowering::inlineStackProbe(MachineFunction &MF,
|
|||
assert(!ChkStkStub->isBundled() &&
|
||||
"Not expecting bundled instructions here");
|
||||
MachineBasicBlock::iterator MBBI = std::next(ChkStkStub->getIterator());
|
||||
assert(std::prev(MBBI).operator==(ChkStkStub) &&
|
||||
"MBBI expected after __chkstk_stub.");
|
||||
assert(std::prev(MBBI) == ChkStkStub &&
|
||||
"MBBI expected after __chkstk_stub.");
|
||||
DebugLoc DL = PrologMBB.findDebugLoc(MBBI);
|
||||
emitStackProbeInline(MF, PrologMBB, MBBI, DL, true);
|
||||
ChkStkStub->eraseFromParent();
|
||||
|
|
Loading…
Reference in New Issue