[llvm] r294791 - [PPC] Silence warning in Release builds.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 14:13:34 PST 2017
Author: d0k
Date: Fri Feb 10 16:13:34 2017
New Revision: 294791
URL: http://llvm.org/viewvc/llvm-project?rev=294791&view=rev
Log:
[PPC] Silence warning in Release builds.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp?rev=294791&r1=294790&r2=294791&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp Fri Feb 10 16:13:34 2017
@@ -1105,8 +1105,7 @@ void PPCLinuxAsmPrinter::EmitInstruction
// 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;
More information about the llvm-commits
mailing list