diff options
Diffstat (limited to 'contrib/llvm/lib/Target/X86/X86FixupSetCC.cpp')
-rw-r--r-- | contrib/llvm/lib/Target/X86/X86FixupSetCC.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm/lib/Target/X86/X86FixupSetCC.cpp b/contrib/llvm/lib/Target/X86/X86FixupSetCC.cpp index fb317da..a86eb99 100644 --- a/contrib/llvm/lib/Target/X86/X86FixupSetCC.cpp +++ b/contrib/llvm/lib/Target/X86/X86FixupSetCC.cpp @@ -39,7 +39,7 @@ class X86FixupSetCCPass : public MachineFunctionPass { public: X86FixupSetCCPass() : MachineFunctionPass(ID) {} - const char *getPassName() const override { return "X86 Fixup SetCC"; } + StringRef getPassName() const override { return "X86 Fixup SetCC"; } bool runOnMachineFunction(MachineFunction &MF) override; @@ -99,7 +99,8 @@ bool X86FixupSetCCPass::isSetCCr(unsigned Opcode) { MachineInstr * X86FixupSetCCPass::findFlagsImpDef(MachineBasicBlock *MBB, MachineBasicBlock::reverse_iterator MI) { - auto MBBStart = MBB->instr_rend(); + // FIXME: Should this be instr_rend(), and MI be reverse_instr_iterator? + auto MBBStart = MBB->rend(); for (int i = 0; (i < SearchBound) && (MI != MBBStart); ++i, ++MI) for (auto &Op : MI->implicit_operands()) if ((Op.getReg() == X86::EFLAGS) && (Op.isDef())) |