[llvm] r243864 - ValueMapper: Reuse local variable, NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Sun Aug 2 20:24:28 PDT 2015
Author: dexonsmith
Date: Sun Aug 2 22:24:28 2015
New Revision: 243864
URL: http://llvm.org/viewvc/llvm-project?rev=243864&view=rev
Log:
ValueMapper: Reuse local variable, 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=243864&r1=243863&r2=243864&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp Sun Aug 2 22:24:28 2015
@@ -205,8 +205,8 @@ static bool remap(const MDNode *OldNode,
assert(NewNode->getOperand(I) == Old &&
"Expected old operands to already be in place");
- Metadata *New = mapMetadataOp(OldNode->getOperand(I), Cycles, VM, Flags,
- TypeMapper, Materializer);
+ Metadata *New =
+ mapMetadataOp(Old, Cycles, VM, Flags, TypeMapper, Materializer);
if (Old != New) {
AnyChanged = true;
NewNode->replaceOperandWith(I, New);
More information about the llvm-commits
mailing list