remove redundant code
authorChris Lattner <sabre@nondot.org>
Mon, 13 Nov 2006 01:10:12 +0000 (01:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Nov 2006 01:10:12 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31697 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index 0e7c244c022e505fe27f28fb36510198df05bdc1..ec1a72b951f5abb0c4cceab008d16aefb6594ec9 100644 (file)
@@ -152,8 +152,6 @@ static const Value *getUnderlyingObject(const Value *V) {
     if (CE->getOpcode() == Instruction::Cast ||
         CE->getOpcode() == Instruction::GetElementPtr)
       return getUnderlyingObject(CE->getOperand(0));
-  } else if (const GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
-    return GV;
   }
   return 0;
 }