@@ -3882,6 +3882,8 @@ bool LLParser::parseValID(ValID &ID, PerFunctionState *PFS, Type *ExpectedTy) {
38823882 return error (ID.Loc , " frem constexprs are no longer supported" );
38833883 case lltok::kw_fneg:
38843884 return error (ID.Loc , " fneg constexprs are no longer supported" );
3885+ case lltok::kw_select:
3886+ return error (ID.Loc , " select constexprs are no longer supported" );
38853887 case lltok::kw_icmp:
38863888 case lltok::kw_fcmp: {
38873889 unsigned PredVal, Opc = Lex.getUIntVal ();
@@ -4011,8 +4013,7 @@ bool LLParser::parseValID(ValID &ID, PerFunctionState *PFS, Type *ExpectedTy) {
40114013 case lltok::kw_getelementptr:
40124014 case lltok::kw_shufflevector:
40134015 case lltok::kw_insertelement:
4014- case lltok::kw_extractelement:
4015- case lltok::kw_select: {
4016+ case lltok::kw_extractelement: {
40164017 unsigned Opc = Lex.getUIntVal ();
40174018 SmallVector<Constant*, 16 > Elts;
40184019 bool InBounds = false ;
@@ -4091,13 +4092,6 @@ bool LLParser::parseValID(ValID &ID, PerFunctionState *PFS, Type *ExpectedTy) {
40914092
40924093 ID.ConstantVal = ConstantExpr::getGetElementPtr (Ty, Elts[0 ], Indices,
40934094 InBounds, InRangeOp);
4094- } else if (Opc == Instruction::Select) {
4095- if (Elts.size () != 3 )
4096- return error (ID.Loc , " expected three operands to select" );
4097- if (const char *Reason = SelectInst::areInvalidOperands (Elts[0 ], Elts[1 ],
4098- Elts[2 ]))
4099- return error (ID.Loc , Reason);
4100- ID.ConstantVal = ConstantExpr::getSelect (Elts[0 ], Elts[1 ], Elts[2 ]);
41014095 } else if (Opc == Instruction::ShuffleVector) {
41024096 if (Elts.size () != 3 )
41034097 return error (ID.Loc , " expected three operands to shufflevector" );
0 commit comments