Utils: Simplify code, NFC

llvm-svn: 225906
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-14 01:07:03 +00:00
parent b557989a40
commit 637e765907
1 changed files with 1 additions and 2 deletions

View File

@ -218,8 +218,7 @@ static Metadata *mapUniquedNode(const UniquableMDNode *Node,
// Check all operands to see if any need to be remapped. // Check all operands to see if any need to be remapped.
for (unsigned I = 0, E = Node->getNumOperands(); I != E; ++I) { for (unsigned I = 0, E = Node->getNumOperands(); I != E; ++I) {
Metadata *Op = Node->getOperand(I); Metadata *Op = Node->getOperand(I);
Metadata *MappedOp = mapMetadataOp(Op, VM, Flags, TypeMapper, Materializer); if (Op == mapMetadataOp(Op, VM, Flags, TypeMapper, Materializer))
if (Op == MappedOp)
continue; continue;
// Ok, at least one operand needs remapping. // Ok, at least one operand needs remapping.