@@ -3365,7 +3365,7 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
3365
3365
// lower it to a DAG node here.
3366
3366
case Intrinsic::wasm_throw: {
3367
3367
const TargetLowering &TLI = DAG.getTargetLoweringInfo ();
3368
- SmallVector <SDValue, 8 > Ops = {
3368
+ std::array <SDValue, 4 > Ops = {
3369
3369
getControlRoot (), // inchain for the terminator node
3370
3370
DAG.getTargetConstant (Intrinsic::wasm_throw, getCurSDLoc (),
3371
3371
TLI.getPointerTy (DAG.getDataLayout ())),
@@ -3377,12 +3377,11 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
3377
3377
break ;
3378
3378
}
3379
3379
case Intrinsic::wasm_rethrow: {
3380
- SmallVector<SDValue, 8 > Ops;
3381
- Ops.push_back (getControlRoot ()); // inchain for the terminator node
3382
3380
const TargetLowering &TLI = DAG.getTargetLoweringInfo ();
3383
- Ops.push_back (
3381
+ std::array<SDValue, 2 > Ops = {
3382
+ getControlRoot (), // inchain for the terminator node
3384
3383
DAG.getTargetConstant (Intrinsic::wasm_rethrow, getCurSDLoc (),
3385
- TLI.getPointerTy (DAG.getDataLayout ()))) ;
3384
+ TLI.getPointerTy (DAG.getDataLayout ()))} ;
3386
3385
SDVTList VTs = DAG.getVTList (ArrayRef<EVT>({MVT::Other})); // outchain
3387
3386
DAG.setRoot (DAG.getNode (ISD::INTRINSIC_VOID, getCurSDLoc (), VTs, Ops));
3388
3387
break ;
0 commit comments