mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
Fix VC++ warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23579 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c1760f636
commit
2aeaf4e839
@ -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…
x
Reference in New Issue
Block a user