[llvm-commits] [llvm] r150516 - /llvm/trunk/include/llvm/CodeGen/MachineDominators.h
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 14 14:17:14 PST 2012
Author: gribozavr
Date: Tue Feb 14 16:17:14 2012
New Revision: 150516
URL: http://llvm.org/viewvc/llvm-project?rev=150516&view=rev
Log:
Silence the new -Wempty-body warning. It appeared because the next statement
after the `for(...) ;' has more indentation than for itself.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineDominators.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineDominators.h?rev=150516&r1=150515&r2=150516&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineDominators.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineDominators.h Tue Feb 14 16:17:14 2012
@@ -84,7 +84,8 @@
// Loop through the basic block until we find A or B.
MachineBasicBlock::iterator I = BBA->begin();
- for (; &*I != A && &*I != B; ++I) /*empty*/;
+ for (; &*I != A && &*I != B; ++I)
+ /*empty*/ ;
//if(!DT.IsPostDominators) {
// A dominates B if it is found first in the basic block.
More information about the llvm-commits
mailing list