@@ -1112,9 +1112,8 @@ class GetElementPtrInst : public Instruction {
11121112};
11131113
11141114template <>
1115- struct OperandTraits <GetElementPtrInst> :
1116- public VariadicOperandTraits<GetElementPtrInst, 1 > {
1117- };
1115+ struct OperandTraits <GetElementPtrInst>
1116+ : public VariadicOperandTraits<GetElementPtrInst> {};
11181117
11191118GetElementPtrInst::GetElementPtrInst (Type *PointeeType, Value *Ptr,
11201119 ArrayRef<Value *> IdxList, unsigned Values,
@@ -2723,9 +2722,7 @@ class PHINode : public Instruction {
27232722 void growOperands ();
27242723};
27252724
2726- template <>
2727- struct OperandTraits <PHINode> : public HungoffOperandTraits<2 > {
2728- };
2725+ template <> struct OperandTraits <PHINode> : public HungoffOperandTraits {};
27292726
27302727DEFINE_TRANSPARENT_OPERAND_ACCESSORS (PHINode, Value)
27312728
@@ -2825,8 +2822,7 @@ class LandingPadInst : public Instruction {
28252822};
28262823
28272824template <>
2828- struct OperandTraits <LandingPadInst> : public HungoffOperandTraits<1 > {
2829- };
2825+ struct OperandTraits <LandingPadInst> : public HungoffOperandTraits {};
28302826
28312827DEFINE_TRANSPARENT_OPERAND_ACCESSORS (LandingPadInst, Value)
28322828
@@ -2903,8 +2899,7 @@ class ReturnInst : public Instruction {
29032899};
29042900
29052901template <>
2906- struct OperandTraits <ReturnInst> : public VariadicOperandTraits<ReturnInst> {
2907- };
2902+ struct OperandTraits <ReturnInst> : public VariadicOperandTraits<ReturnInst> {};
29082903
29092904DEFINE_TRANSPARENT_OPERAND_ACCESSORS (ReturnInst, Value)
29102905
@@ -3039,8 +3034,7 @@ class BranchInst : public Instruction {
30393034};
30403035
30413036template <>
3042- struct OperandTraits <BranchInst> : public VariadicOperandTraits<BranchInst, 1 > {
3043- };
3037+ struct OperandTraits <BranchInst> : public VariadicOperandTraits<BranchInst> {};
30443038
30453039DEFINE_TRANSPARENT_OPERAND_ACCESSORS (BranchInst, Value)
30463040
@@ -3428,9 +3422,7 @@ class SwitchInstProfUpdateWrapper {
34283422 static CaseWeightOpt getSuccessorWeight (const SwitchInst &SI, unsigned idx);
34293423};
34303424
3431- template <>
3432- struct OperandTraits <SwitchInst> : public HungoffOperandTraits<2 > {
3433- };
3425+ template <> struct OperandTraits <SwitchInst> : public HungoffOperandTraits {};
34343426
34353427DEFINE_TRANSPARENT_OPERAND_ACCESSORS (SwitchInst, Value)
34363428
@@ -3554,8 +3546,7 @@ class IndirectBrInst : public Instruction {
35543546};
35553547
35563548template <>
3557- struct OperandTraits <IndirectBrInst> : public HungoffOperandTraits<1 > {
3558- };
3549+ struct OperandTraits <IndirectBrInst> : public HungoffOperandTraits {};
35593550
35603551DEFINE_TRANSPARENT_OPERAND_ACCESSORS (IndirectBrInst, Value)
35613552
@@ -4105,7 +4096,7 @@ class CatchSwitchInst : public Instruction {
41054096};
41064097
41074098template <>
4108- struct OperandTraits <CatchSwitchInst> : public HungoffOperandTraits< 2 > {};
4099+ struct OperandTraits <CatchSwitchInst> : public HungoffOperandTraits {};
41094100
41104101DEFINE_TRANSPARENT_OPERAND_ACCESSORS (CatchSwitchInst, Value)
41114102
@@ -4337,7 +4328,7 @@ class CleanupReturnInst : public Instruction {
43374328
43384329template <>
43394330struct OperandTraits <CleanupReturnInst>
4340- : public VariadicOperandTraits<CleanupReturnInst, /* MINARITY= */ 1 > {};
4331+ : public VariadicOperandTraits<CleanupReturnInst> {};
43414332
43424333DEFINE_TRANSPARENT_OPERAND_ACCESSORS (CleanupReturnInst, Value)
43434334
0 commit comments