1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

Use dyn_cast instead of checking opcode and cast.

llvm-svn: 155957
This commit is contained in:
Jakub Staszak 2012-05-01 23:06:00 +00:00
parent 56c14bb368
commit c45d47462b

View File

@ -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;