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 | 3b4e83ec83448270f13fb5640de6788839fab47f (patch) | |
| tree | 15974ffee4f7d7f063883ba2149b12a6ec1cc1cf | |
| parent | f0a5bcaae406b0de9a2c4ec994902f27e6841d5c (diff) | |
| download | llvm-3b4e83ec83448270f13fb5640de6788839fab47f.tar.gz | |
Remove an if statement that would never be reached.
llvm-svn: 14968
| -rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 9f5255652719..94e56b73a538 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/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); |
