[Hexagon] Fold another layer of single-use variable into assert. NFCI.

This commit is contained in:
Benjamin Kramer 2020-08-27 16:52:34 +02:00
parent 2b7df2707f
commit b5924a8e27
1 changed files with 4 additions and 4 deletions

View File

@ -1964,10 +1964,10 @@ HexagonTargetLowering::LowerHvxOperationWrapper(SDNode *N,
switch (Opc) {
case ISD::STORE: {
SDValue Value = cast<StoreSDNode>(N)->getValue();
assert(getPreferredHvxVectorAction(ty(Value)) ==
TargetLoweringBase::TypeWidenVector &&
"Not widening?");
assert(
getPreferredHvxVectorAction(ty(cast<StoreSDNode>(N)->getValue())) ==
TargetLoweringBase::TypeWidenVector &&
"Not widening?");
SDValue Store = WidenHvxStore(SDValue(N, 0), DAG);
Results.push_back(Store);
break;