[llvm] r225906 - Utils: Simplify code, NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Jan 13 17:07:03 PST 2015
Author: dexonsmith
Date: Tue Jan 13 19:07:03 2015
New Revision: 225906
URL: http://llvm.org/viewvc/llvm-project?rev=225906&view=rev
Log:
Utils: Simplify code, NFC
Modified:
llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp
Modified: llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp?rev=225906&r1=225905&r2=225906&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp Tue Jan 13 19:07:03 2015
@@ -218,8 +218,7 @@ static Metadata *mapUniquedNode(const Un
// 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.
More information about the llvm-commits
mailing list