forked from OSchip/llvm-project
Use dyn_cast instead of checking opcode and cast.
llvm-svn: 155957
This commit is contained in:
parent
339380286b
commit
cd2353402d
|
@ -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