mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-30 04:56:49 +00:00
Use dyn_cast instead of checking opcode and cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf14860572
commit
ce00b440f5
@ -2246,8 +2246,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle LOADX separately here. EXTLOAD case will fallthrough.
|
// Handle LOADX separately here. EXTLOAD case will fallthrough.
|
||||||
if (Op.getOpcode() == ISD::LOAD) {
|
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(Op)) {
|
||||||
LoadSDNode *LD = cast<LoadSDNode>(Op);
|
|
||||||
unsigned ExtType = LD->getExtensionType();
|
unsigned ExtType = LD->getExtensionType();
|
||||||
switch (ExtType) {
|
switch (ExtType) {
|
||||||
default: break;
|
default: break;
|
||||||
|
Loading…
Reference in New Issue
Block a user