mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix VC++ warnings.
llvm-svn: 23579
This commit is contained in:
parent
2f63a0f7c6
commit
412582bcec
@ -148,7 +148,7 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli,
|
||||
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 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli,
|
||||
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 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli,
|
||||
// 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);
|
||||
|
@ -365,7 +365,6 @@ splitLiveRangesLiveAcrossInvokes(std::vector<InvokeInst*> &Invokes) {
|
||||
Instruction *U = Users.back();
|
||||
Users.pop_back();
|
||||
|
||||
BasicBlock *UseBlock;
|
||||
if (!isa<PHINode>(U)) {
|
||||
MarkBlocksLiveIn(U->getParent(), LiveBBs);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user