summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/ValueMapper.cpp
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
commite95ff9afa07e3409b29070aed480ffd780307c97 (patch)
tree6a5a452ffd27d73e4f322811f9333218401ccd75 /lib/Transforms/Utils/ValueMapper.cpp
parentc88920df668453fe11e91725f37277cf4902f382 (diff)
downloadllvm-e95ff9afa07e3409b29070aed480ffd780307c97.tar.gz
llvm-e95ff9afa07e3409b29070aed480ffd780307c97.tar.bz2
llvm-e95ff9afa07e3409b29070aed480ffd780307c97.tar.xz
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.cpp4
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);