mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +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:
@ -152,8 +152,6 @@ static const Value *getUnderlyingObject(const Value *V) {
|
|||||||
if (CE->getOpcode() == Instruction::Cast ||
|
if (CE->getOpcode() == Instruction::Cast ||
|
||||||
CE->getOpcode() == Instruction::GetElementPtr)
|
CE->getOpcode() == Instruction::GetElementPtr)
|
||||||
return getUnderlyingObject(CE->getOperand(0));
|
return getUnderlyingObject(CE->getOperand(0));
|
||||||
} else if (const GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
|
||||||
return GV;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user