mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +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.
|
||||
if (Op.getOpcode() == ISD::LOAD) {
|
||||
LoadSDNode *LD = cast<LoadSDNode>(Op);
|
||||
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(Op)) {
|
||||
unsigned ExtType = LD->getExtensionType();
|
||||
switch (ExtType) {
|
||||
default: break;
|
||||
|
Loading…
Reference in New Issue
Block a user