mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
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
c0211aa6e9
commit
def4d1cdf6
@ -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
Block a user