diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 08:41:47 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 08:41:47 +0000 |
commit | e95ff9afa07e3409b29070aed480ffd780307c97 (patch) | |
tree | 6a5a452ffd27d73e4f322811f9333218401ccd75 /lib/Transforms/Utils/ValueMapper.cpp | |
parent | c88920df668453fe11e91725f37277cf4902f382 (diff) |
Remove an if statement that would never be reached.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | lib/Transforms/Utils/ValueMapper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 9f52556527..94e56b73a5 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -33,9 +33,7 @@ Value *llvm::MapValue(const Value *V, std::map<const Value*, Value*> &VM) { if (isa<ConstantIntegral>(C) || isa<ConstantFP>(C) || isa<ConstantPointerNull>(C) || isa<ConstantAggregateZero>(C)) return VMSlot = C; // Primitive constants map directly - else if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) { - return VMSlot = GV; - } else if (ConstantArray *CA = dyn_cast<ConstantArray>(C)) { + else if (ConstantArray *CA = dyn_cast<ConstantArray>(C)) { const std::vector<Use> &Vals = CA->getValues(); for (unsigned i = 0, e = Vals.size(); i != e; ++i) { Value *MV = MapValue(Vals[i], VM); |