Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class PPCBoolRetToInt : public FunctionPass {
Value *Zero = Constant::getNullValue(IntTy);
PHINode *Q =
PHINode::Create(IntTy, P->getNumIncomingValues(), P->getName(), P->getIterator());
for (unsigned i = 0; i < P->getNumOperands(); ++i)
Q->addIncoming(Zero, P->getIncomingBlock(i));
for (unsigned I = 0; I < P->getNumOperands(); ++I)
Q->addIncoming(Zero, P->getIncomingBlock(I));
return Q;
}

Expand Down Expand Up @@ -254,8 +254,8 @@ class PPCBoolRetToInt : public FunctionPass {
// Operands of CallInst/Constant are skipped because they may not be Bool
// type. For CallInst, their positions are defined by ABI.
if (First && !isa<CallInst>(First) && !isa<Constant>(First))
for (unsigned i = 0; i < First->getNumOperands(); ++i)
Second->setOperand(i, BoolToIntMap[First->getOperand(i)]);
for (unsigned I = 0; I < First->getNumOperands(); ++I)
Second->setOperand(I, BoolToIntMap[First->getOperand(I)]);
}

Value *IntRetVal = BoolToIntMap[U];
Expand Down
Loading