diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-09-02 22:11:14 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-09-02 22:11:14 +0000 |
commit | 35322d745cefb30b16f7f71d57ee721c74471be8 (patch) | |
tree | 416b6064c3a2e43b453aaf4881276b552cc1ab48 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 38ce90fd444064ac487f79720eb5d2fb0ae441fc (diff) | |
download | bcm5719-llvm-35322d745cefb30b16f7f71d57ee721c74471be8.tar.gz bcm5719-llvm-35322d745cefb30b16f7f71d57ee721c74471be8.zip |
Silence warning while compiling with gcc 4.2
llvm-svn: 41676
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index ba428c5bdb3..134d2767861 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -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; } |