From 73f90657708008c9589f83993323e9a7fe2e864f Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 14 Jan 2015 01:07:03 +0000 Subject: [PATCH] Utils: Simplify code, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225906 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/ValueMapper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index f9a3a78b79b..de9db8fed70 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -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.