diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-11 15:51:29 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-11 15:51:29 +0000 |
commit | 62e351f5a4821ae0470697b6827b049d39be0c77 (patch) | |
tree | bcb8b4428ddbe810fc17c87fd3bfb2386da3886a /llvm/lib/Target/X86/X86FrameLowering.cpp | |
parent | 43724649c3460ce5e748e8cf4af743fb9eda2195 (diff) | |
download | bcm5719-llvm-62e351f5a4821ae0470697b6827b049d39be0c77.tar.gz bcm5719-llvm-62e351f5a4821ae0470697b6827b049d39be0c77.zip |
X86: Use operator lookup for operator==, NFC
Avoid relying on the MachineInstrBundleIterator operator== being
implemented as a member function.
llvm-svn: 278347
Diffstat (limited to 'llvm/lib/Target/X86/X86FrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 850a67a30e0..7db1d5fd2ca 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -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(); |