diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index ba428c5bdb32..134d2767861d 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -81,7 +81,8 @@ void ilist_traits::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; } diff --git a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp index df332b289d0d..95b28f134651 100644 --- a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp @@ -122,7 +122,8 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P) { // Insert load in place of the phi and replace all uses. BasicBlock::iterator InsertPt; for (InsertPt = P->getParent()->getInstList().begin(); - isa(InsertPt); ++InsertPt); + isa(InsertPt); ++InsertPt) + ; /*noop */ Value *V = new LoadInst(Slot, P->getName()+".reload", P); P->replaceAllUsesWith(V);