@@ -3228,7 +3228,7 @@ Error BitcodeReader::parseConstants() {
3228
3228
V = ConstantFP::get (
3229
3229
CurTy, APFloat (APFloat::PPCDoubleDouble (), APInt (128 , Record)));
3230
3230
else
3231
- V = UndefValue ::get (CurTy);
3231
+ V = PoisonValue ::get (CurTy);
3232
3232
break ;
3233
3233
}
3234
3234
@@ -3251,7 +3251,7 @@ Error BitcodeReader::parseConstants() {
3251
3251
V = BitcodeConstant::create (
3252
3252
Alloc, CurTy, BitcodeConstant::ConstantVectorOpcode, Elts);
3253
3253
} else {
3254
- V = UndefValue ::get (CurTy);
3254
+ V = PoisonValue ::get (CurTy);
3255
3255
}
3256
3256
break ;
3257
3257
}
@@ -3332,7 +3332,7 @@ Error BitcodeReader::parseConstants() {
3332
3332
return error (" Invalid unary op constexpr record" );
3333
3333
int Opc = getDecodedUnaryOpcode (Record[0 ], CurTy);
3334
3334
if (Opc < 0 ) {
3335
- V = UndefValue ::get (CurTy); // Unknown unop.
3335
+ V = PoisonValue ::get (CurTy); // Unknown unop.
3336
3336
} else {
3337
3337
V = BitcodeConstant::create (Alloc, CurTy, Opc, (unsigned )Record[1 ]);
3338
3338
}
@@ -3343,7 +3343,7 @@ Error BitcodeReader::parseConstants() {
3343
3343
return error (" Invalid binary op constexpr record" );
3344
3344
int Opc = getDecodedBinaryOpcode (Record[0 ], CurTy);
3345
3345
if (Opc < 0 ) {
3346
- V = UndefValue ::get (CurTy); // Unknown binop.
3346
+ V = PoisonValue ::get (CurTy); // Unknown binop.
3347
3347
} else {
3348
3348
uint8_t Flags = 0 ;
3349
3349
if (Record.size () >= 4 ) {
@@ -3373,7 +3373,7 @@ Error BitcodeReader::parseConstants() {
3373
3373
return error (" Invalid cast constexpr record" );
3374
3374
int Opc = getDecodedCastOpcode (Record[0 ]);
3375
3375
if (Opc < 0 ) {
3376
- V = UndefValue ::get (CurTy); // Unknown cast.
3376
+ V = PoisonValue ::get (CurTy); // Unknown cast.
3377
3377
} else {
3378
3378
unsigned OpTyID = Record[1 ];
3379
3379
Type *OpTy = getTypeByID (OpTyID);
0 commit comments