mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Use dyn_cast instead of checking opcode and cast.
llvm-svn: 155957
This commit is contained in:
parent
56c14bb368
commit
c45d47462b
@ -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