-
-InsertValueConstantExpr::InsertValueConstantExpr
- (Constant *Agg, Constant *Val,
- const std::vector<Constant*> &IdxList,
- const Type *DestTy)
- : ConstantExpr(DestTy, Instruction::InsertValue,
- OperandTraits<InsertValueConstantExpr>::op_end(this)
- - (IdxList.size()+2),
- IdxList.size()+2) {
- OperandList[0].init(Agg, this);
- OperandList[1].init(Val, this);
- for (unsigned i = 0, E = IdxList.size(); i != E; ++i)
- OperandList[i+2].init(IdxList[i], this);
-}
-