summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2016-02-18 22:09:30 +0000
committerRichard Trieu <rtrieu@google.com>2016-02-18 22:09:30 +0000
commit7a08381403b54cd8998f3c922f18b65867e3c07c (patch)
tree888b16f3115d38f20de5fefd2d736c173a4fdc76 /llvm/lib/CodeGen/MachineInstr.cpp
parentec3d33274887bc59ff3bfdba90494a63850680cc (diff)
downloadbcm5719-llvm-7a08381403b54cd8998f3c922f18b65867e3c07c.tar.gz
bcm5719-llvm-7a08381403b54cd8998f3c922f18b65867e3c07c.zip
Remove uses of builtin comma operator.
Cleanup for upcoming Clang warning -Wcomma. No functionality change intended. llvm-svn: 261270
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 805acb93efd..4103253133e 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1234,8 +1234,10 @@ const TargetRegisterClass *MachineInstr::getRegClassConstraintEffect(
unsigned MachineInstr::getBundleSize() const {
MachineBasicBlock::const_instr_iterator I = getIterator();
unsigned Size = 0;
- while (I->isBundledWithSucc())
- ++Size, ++I;
+ while (I->isBundledWithSucc()) {
+ ++Size;
+ ++I;
+ }
return Size;
}
OpenPOWER on IntegriCloud