[PPC] Silence warning in Release builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2017-02-10 22:13:34 +00:00
parent bec084b99d
commit 0746877d41

View File

@ -1105,8 +1105,7 @@ void PPCLinuxAsmPrinter::EmitInstruction(const MachineInstr *MI) {
// of instructions change.
const MachineInstr *Next = [&] {
MachineBasicBlock::const_iterator It(MI);
const MachineBasicBlock *MBB = MI->getParent();
assert(It != MBB->end());
assert(It != MI->getParent()->end());
++It;
assert(It->isReturn());
return &*It;