aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ValueMapper.cpp
diff options
context:
space:
mode:
authorJunmo Park <junmoz.park@samsung.com>2016-05-08 23:22:58 +0000
committerJunmo Park <junmoz.park@samsung.com>2016-05-08 23:22:58 +0000
commit955298746d9fe544255512d9a4cde6e54efbbee5 (patch)
tree5ae134526277e5330e3f7aaabd00590259f48347 /llvm/lib/Transforms/Utils/ValueMapper.cpp
parent31dd2b1c88d3611301309f17360587e03cb08c98 (diff)
downloadllvm-955298746d9fe544255512d9a4cde6e54efbbee5.zip
llvm-955298746d9fe544255512d9a4cde6e54efbbee5.tar.gz
llvm-955298746d9fe544255512d9a4cde6e54efbbee5.tar.bz2
Minor code cleanups. NFC.
llvm-svn: 268888
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/ValueMapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp
index f44e79f..272891f 100644
--- a/llvm/lib/Transforms/Utils/ValueMapper.cpp
+++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp
@@ -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))));