forked from OSchip/llvm-project
[DAGCombiner] Replace two unchecked dyn_casts with casts.
The results of the dyn_casts were immediately dereferenced on the next line so they had better not be null. I don't think there's any way for these dyn_casts to fail, so use a cast of adding null check. llvm-svn: 362315
This commit is contained in:
parent
0a6bababa8
commit
f58ef87bb7
|
@ -8068,7 +8068,7 @@ SDValue DAGCombiner::visitMSTORE(SDNode *N) {
|
|||
if (Level >= AfterLegalizeTypes)
|
||||
return SDValue();
|
||||
|
||||
MaskedStoreSDNode *MST = dyn_cast<MaskedStoreSDNode>(N);
|
||||
MaskedStoreSDNode *MST = cast<MaskedStoreSDNode>(N);
|
||||
SDValue Mask = MST->getMask();
|
||||
SDValue Data = MST->getValue();
|
||||
EVT VT = Data.getValueType();
|
||||
|
@ -8219,7 +8219,7 @@ SDValue DAGCombiner::visitMLOAD(SDNode *N) {
|
|||
if (Level >= AfterLegalizeTypes)
|
||||
return SDValue();
|
||||
|
||||
MaskedLoadSDNode *MLD = dyn_cast<MaskedLoadSDNode>(N);
|
||||
MaskedLoadSDNode *MLD = cast<MaskedLoadSDNode>(N);
|
||||
SDValue Mask = MLD->getMask();
|
||||
SDLoc DL(N);
|
||||
|
||||
|
|
Loading…
Reference in New Issue