summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-18 08:41:47 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-18 08:41:47 +0000
commit3b4e83ec83448270f13fb5640de6788839fab47f (patch)
tree15974ffee4f7d7f063883ba2149b12a6ec1cc1cf /llvm/lib
parentf0a5bcaae406b0de9a2c4ec994902f27e6841d5c (diff)
downloadbcm5719-llvm-3b4e83ec83448270f13fb5640de6788839fab47f.tar.gz
bcm5719-llvm-3b4e83ec83448270f13fb5640de6788839fab47f.zip
Remove an if statement that would never be reached.
llvm-svn: 14968
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/ValueMapper.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp
index 9f525565271..94e56b73a53 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);
OpenPOWER on IntegriCloud