[llvm] r266563 - IRMover: Remove dead code, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 17 11:21:48 PDT 2016


Author: dexonsmith
Date: Sun Apr 17 13:21:47 2016
New Revision: 266563

URL: http://llvm.org/viewvc/llvm-project?rev=266563&view=rev
Log:
IRMover: Remove dead code, NFC

Modified:
    llvm/trunk/lib/Linker/IRMover.cpp

Modified: llvm/trunk/lib/Linker/IRMover.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/IRMover.cpp?rev=266563&r1=266562&r2=266563&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/IRMover.cpp (original)
+++ llvm/trunk/lib/Linker/IRMover.cpp Sun Apr 17 13:21:47 2016
@@ -814,9 +814,6 @@ Constant *IRLinker::linkAppendingVarProt
 
   Constant *Ret = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType()));
 
-  // Stop recursion.
-  ValueMap[SrcGV] = Ret;
-
   Mapper.scheduleMapAppendingVariable(*NG,
                                       DstGV ? DstGV->getInitializer() : nullptr,
                                       IsOldStructor, SrcElements);




More information about the llvm-commits mailing list