Remove an if statement that would never be reached.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 08:41:47 +0000 (08:41 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 08:41:47 +0000 (08:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14968 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ValueMapper.cpp

index 9f525565271903833d69c051aa21e43f55c2df5d..94e56b73a5389b12984d6ec4c59a6260d87f1678 100644 (file)
@@ -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);