mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
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:
parent
bf63734a1b
commit
c2e6801cc7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user