@@ -1384,12 +1384,12 @@ static bool handleDanglingVariadicDebugInfo(SelectionDAG &DAG,
1384
1384
DebugLoc DL, unsigned Order,
1385
1385
SmallVectorImpl<Value *> &Values,
1386
1386
DIExpression *Expression) {
1387
- // For variadic dbg_values we will now insert an undef .
1387
+ // For variadic dbg_values we will now insert poison .
1388
1388
// FIXME: We can potentially recover these!
1389
1389
SmallVector<SDDbgOperand, 2 > Locs;
1390
1390
for (const Value *V : Values) {
1391
- auto *Undef = UndefValue ::get (V->getType ());
1392
- Locs.push_back (SDDbgOperand::fromConst (Undef ));
1391
+ auto *Poison = PoisonValue ::get (V->getType ());
1392
+ Locs.push_back (SDDbgOperand::fromConst (Poison ));
1393
1393
}
1394
1394
SDDbgValue *SDV = DAG.getDbgValueList (Variable, Expression, Locs, {},
1395
1395
/* IsIndirect=*/ false , DL, Order,
@@ -1408,9 +1408,9 @@ void SelectionDAGBuilder::addDanglingDebugInfo(SmallVectorImpl<Value *> &Values,
1408
1408
return ;
1409
1409
}
1410
1410
// TODO: Dangling debug info will eventually either be resolved or produce
1411
- // an Undef DBG_VALUE. However in the resolution case, a gap may appear
1411
+ // a poison DBG_VALUE. However in the resolution case, a gap may appear
1412
1412
// between the original dbg.value location and its resolved DBG_VALUE,
1413
- // which we should ideally fill with an extra Undef DBG_VALUE.
1413
+ // which we should ideally fill with an extra poison DBG_VALUE.
1414
1414
assert (Values.size () == 1 );
1415
1415
DanglingDebugInfoMap[Values[0 ]].emplace_back (Var, Expr, DL, Order);
1416
1416
}
@@ -1488,9 +1488,9 @@ void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V,
1488
1488
} else {
1489
1489
LLVM_DEBUG (dbgs () << " Dropping debug info for " << printDDI (V, DDI)
1490
1490
<< " \n " );
1491
- auto Undef = UndefValue ::get (V->getType ());
1491
+ auto Poison = PoisonValue ::get (V->getType ());
1492
1492
auto SDV =
1493
- DAG.getConstantDbgValue (Variable, Expr, Undef , DL, DbgSDNodeOrder);
1493
+ DAG.getConstantDbgValue (Variable, Expr, Poison , DL, DbgSDNodeOrder);
1494
1494
DAG.AddDbgValue (SDV, false );
1495
1495
}
1496
1496
}
@@ -1553,11 +1553,11 @@ void SelectionDAGBuilder::salvageUnresolvedDbgValue(const Value *V,
1553
1553
}
1554
1554
1555
1555
// This was the final opportunity to salvage this debug information, and it
1556
- // couldn't be done. Place an undef DBG_VALUE at this location to terminate
1556
+ // couldn't be done. Place a poison DBG_VALUE at this location to terminate
1557
1557
// any earlier variable location.
1558
1558
assert (OrigV && " V shouldn't be null" );
1559
- auto *Undef = UndefValue ::get (OrigV->getType ());
1560
- auto *SDV = DAG.getConstantDbgValue (Var, Expr, Undef , DL, SDNodeOrder);
1559
+ auto *Poison = PoisonValue ::get (OrigV->getType ());
1560
+ auto *SDV = DAG.getConstantDbgValue (Var, Expr, Poison , DL, SDNodeOrder);
1561
1561
DAG.AddDbgValue (SDV, false );
1562
1562
LLVM_DEBUG (dbgs () << " Dropping debug value info for:\n "
1563
1563
<< printDDI (OrigV, DDI) << " \n " );
@@ -6191,10 +6191,10 @@ bool SelectionDAGBuilder::EmitFuncArgumentDbgValue(
6191
6191
Expr, Offset, RegFragmentSizeInBits);
6192
6192
Offset += RegAndSize.second ;
6193
6193
// If a valid fragment expression cannot be created, the variable's
6194
- // correct value cannot be determined and so it is set as Undef .
6194
+ // correct value cannot be determined and so it is set as poison .
6195
6195
if (!FragmentExpr) {
6196
6196
SDDbgValue *SDV = DAG.getConstantDbgValue (
6197
- Variable, Expr, UndefValue ::get (V->getType ()), DL, SDNodeOrder);
6197
+ Variable, Expr, PoisonValue ::get (V->getType ()), DL, SDNodeOrder);
6198
6198
DAG.AddDbgValue (SDV, false );
6199
6199
continue ;
6200
6200
}
0 commit comments