[llvm-commits] CVS: llvm/lib/Transforms/Utils/ValueMapper.cpp

LLVM llvm at cs.uiuc.edu
Sun Jul 18 01:41:57 PDT 2004



Changes in directory llvm/lib/Transforms/Utils:

ValueMapper.cpp updated: 1.15 -> 1.16

---
Log message:

Remove an if statement that would never be reached.


---
Diffs of the changes:  (+1 -3)

Index: llvm/lib/Transforms/Utils/ValueMapper.cpp
diff -u llvm/lib/Transforms/Utils/ValueMapper.cpp:1.15 llvm/lib/Transforms/Utils/ValueMapper.cpp:1.16
--- llvm/lib/Transforms/Utils/ValueMapper.cpp:1.15	Sat Jul 17 19:32:39 2004
+++ llvm/lib/Transforms/Utils/ValueMapper.cpp	Sun Jul 18 03:41:47 2004
@@ -33,9 +33,7 @@
     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);





More information about the llvm-commits mailing list