aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-09-02 22:11:14 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-09-02 22:11:14 +0000
commit406452dce3af47bc2ee55d9ff72338dcb78f6c3d (patch)
treeb79850ab3509ef3bb4279e5b37ba0a6a0e7d800e /lib/CodeGen/MachineBasicBlock.cpp
parent9cc54f586786572f6c2b1b353b7cf3f98503c59e (diff)
downloadexternal_llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.zip
external_llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.gz
external_llvm-406452dce3af47bc2ee55d9ff72338dcb78f6c3d.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index ba428c5..134d276 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/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;
}