Silence warning while compiling with gcc 4.2

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2007-09-02 22:11:14 +00:00
parent 9cc54f5867
commit 406452dce3
2 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,8 @@ void ilist_traits<MachineInstr>::transferNodesFromList(
MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() {
const TargetInstrInfo& TII = *getParent()->getTarget().getInstrInfo();
iterator I = end();
while (I != begin() && TII.isTerminatorInstr((--I)->getOpcode()));
while (I != begin() && TII.isTerminatorInstr((--I)->getOpcode()))
; /*noop */
if (I != end() && !TII.isTerminatorInstr(I->getOpcode())) ++I;
return I;
}