Skip to content

Commit aa5fafd

Browse files
committed
Use a static array
1 parent 87456cc commit aa5fafd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3364,14 +3364,14 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
33643364
// but this intrinsic is special because it can be invoked, so we manually
33653365
// lower it to a DAG node here.
33663366
case Intrinsic::wasm_throw: {
3367-
SmallVector<SDValue, 8> Ops;
3368-
Ops.push_back(getControlRoot()); // inchain for the terminator node
33693367
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3370-
Ops.push_back(
3368+
SmallVector<SDValue, 8> Ops = {
3369+
getControlRoot(), // inchain for the terminator node
33713370
DAG.getTargetConstant(Intrinsic::wasm_throw, getCurSDLoc(),
3372-
TLI.getPointerTy(DAG.getDataLayout())));
3373-
Ops.push_back(getValue(I.getArgOperand(0))); // tag
3374-
Ops.push_back(getValue(I.getArgOperand(1))); // thrown value
3371+
TLI.getPointerTy(DAG.getDataLayout())),
3372+
getValue(I.getArgOperand(0)), // tag
3373+
getValue(I.getArgOperand(1)) // thrown value
3374+
};
33753375
SDVTList VTs = DAG.getVTList(ArrayRef<EVT>({MVT::Other})); // outchain
33763376
DAG.setRoot(DAG.getNode(ISD::INTRINSIC_VOID, getCurSDLoc(), VTs, Ops));
33773377
break;

0 commit comments

Comments
 (0)