Utils: Simplify code, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-14 01:07:03 +00:00
parent 5f1f94e4c5
commit 73f9065770

View File

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