remove redundant code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-11-13 01:10:12 +00:00
parent bf63734a1b
commit c2e6801cc7

View 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;
}