From e95ff9afa07e3409b29070aed480ffd780307c97 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 18 Jul 2004 08:41:47 +0000 Subject: [PATCH] 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 --- lib/Transforms/Utils/ValueMapper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 9f525565271..94e56b73a53 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 &VM) { if (isa(C) || isa(C) || isa(C) || isa(C)) return VMSlot = C; // Primitive constants map directly - else if (GlobalValue *GV = dyn_cast(C)) { - return VMSlot = GV; - } else if (ConstantArray *CA = dyn_cast(C)) { + else if (ConstantArray *CA = dyn_cast(C)) { const std::vector &Vals = CA->getValues(); for (unsigned i = 0, e = Vals.size(); i != e; ++i) { Value *MV = MapValue(Vals[i], VM);