mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
Minor code cleanups. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f453dfba6f
commit
328324434e
@ -444,7 +444,7 @@ Value *Mapper::mapValue(const Value *V) {
|
||||
Mapped = mapValue(Op);
|
||||
if (Mapped != C) break;
|
||||
}
|
||||
|
||||
|
||||
// See if the type mapper wants to remap the type as well.
|
||||
Type *NewTy = C->getType();
|
||||
if (TypeMapper)
|
||||
@ -461,11 +461,11 @@ Value *Mapper::mapValue(const Value *V) {
|
||||
Ops.reserve(NumOperands);
|
||||
for (unsigned j = 0; j != OpNo; ++j)
|
||||
Ops.push_back(cast<Constant>(C->getOperand(j)));
|
||||
|
||||
|
||||
// If one of the operands mismatch, push it and the other mapped operands.
|
||||
if (OpNo != NumOperands) {
|
||||
Ops.push_back(cast<Constant>(Mapped));
|
||||
|
||||
|
||||
// Map the rest of the operands that aren't processed yet.
|
||||
for (++OpNo; OpNo != NumOperands; ++OpNo)
|
||||
Ops.push_back(cast<Constant>(mapValue(C->getOperand(OpNo))));
|
||||
|
Loading…
x
Reference in New Issue
Block a user