[llvm] r268888 - Minor code cleanups. NFC.

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Sun May 8 16:22:58 PDT 2016


Author: flyingforyou
Date: Sun May  8 18:22:58 2016
New Revision: 268888

URL: http://llvm.org/viewvc/llvm-project?rev=268888&view=rev
Log:
Minor code cleanups. 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=268888&r1=268887&r2=268888&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp Sun May  8 18:22:58 2016
@@ -444,7 +444,7 @@ Value *Mapper::mapValue(const Value *V)
     Mapped = mapValue(Op);
     if (Mapped != C) break;
   }
-  
+
   // See if the type mapper wants to remap the type as well.
   Type *NewTy = C->getType();
   if (TypeMapper)
@@ -461,11 +461,11 @@ Value *Mapper::mapValue(const Value *V)
   Ops.reserve(NumOperands);
   for (unsigned j = 0; j != OpNo; ++j)
     Ops.push_back(cast<Constant>(C->getOperand(j)));
-  
+
   // If one of the operands mismatch, push it and the other mapped operands.
   if (OpNo != NumOperands) {
     Ops.push_back(cast<Constant>(Mapped));
-  
+
     // Map the rest of the operands that aren't processed yet.
     for (++OpNo; OpNo != NumOperands; ++OpNo)
       Ops.push_back(cast<Constant>(mapValue(C->getOperand(OpNo))));




More information about the llvm-commits mailing list