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:
parent
56c14bb368
commit
c45d47462b
@ -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