[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Jeff Cohen
jeffc at jolt-lang.org
Fri Sep 30 20:57:26 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.85 -> 1.86
---
Log message:
Fix VC++ warnings.
---
Diffs of the changes: (+4 -4)
SelectionDAGISel.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.85 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.86
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.85 Wed Sep 28 17:28:18 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Fri Sep 30 22:57:14 2005
@@ -148,7 +148,7 @@
AI != E; ++AI)
InitializeRegForValue(AI);
- Function::iterator BB = Fn.begin(), E = Fn.end();
+ Function::iterator BB = Fn.begin(), EB = Fn.end();
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
if (AllocaInst *AI = dyn_cast<AllocaInst>(I))
if (ConstantUInt *CUI = dyn_cast<ConstantUInt>(AI->getArraySize())) {
@@ -170,8 +170,8 @@
MF.getFrameInfo()->CreateStackObject((unsigned)TySize, Align);
}
- for (; BB != E; ++BB)
- for (BasicBlock::iterator I = BB->begin(), e = BB->end(); I != e; ++I)
+ for (; BB != EB; ++BB)
+ for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
if (!I->use_empty() && isUsedOutsideOfDefiningBlock(I))
if (!isa<AllocaInst>(I) ||
!StaticAllocaMap.count(cast<AllocaInst>(I)))
@@ -180,7 +180,7 @@
// Create an initial MachineBasicBlock for each LLVM BasicBlock in F. This
// also creates the initial PHI MachineInstrs, though none of the input
// operands are populated.
- for (Function::iterator BB = Fn.begin(), E = Fn.end(); BB != E; ++BB) {
+ for (BB = Fn.begin(), EB = Fn.end(); BB != EB; ++BB) {
MachineBasicBlock *MBB = new MachineBasicBlock(BB);
MBBMap[BB] = MBB;
MF.getBasicBlockList().push_back(MBB);
More information about the llvm-commits
mailing list