@@ -1529,7 +1529,7 @@ bool DataflowState::cleanupAllDestroyAddr(
15291529 addressDebugInst->getDebugScope ());
15301530 dbgValueInsertBuilder.createDebugValue (
15311531 (*addressDebugInst)->getLoc (), SILUndef::get (address), *varInfo,
1532- false , UsesMoveableValueDebugInfo);
1532+ DontPoisonRefs , UsesMoveableValueDebugInfo);
15331533 }
15341534 }
15351535 useState.destroys .insert (dvi);
@@ -1569,7 +1569,7 @@ bool DataflowState::cleanupAllDestroyAddr(
15691569 SILBuilderWithScope reinitBuilder ((*reinit)->getNextInstruction ());
15701570 reinitBuilder.setCurrentDebugScope (addressDebugInst->getDebugScope ());
15711571 reinitBuilder.createDebugValue ((*addressDebugInst)->getLoc (), address,
1572- *varInfo, false ,
1572+ *varInfo, DontPoisonRefs ,
15731573 UsesMoveableValueDebugInfo);
15741574 }
15751575 }
@@ -1821,7 +1821,7 @@ bool DataflowState::process(
18211821 undefBuilder.setCurrentDebugScope (addressDebugInst->getDebugScope ());
18221822 undefBuilder.createDebugValue (
18231823 addressDebugInst->getLoc (), SILUndef::get (address), *varInfo,
1824- false /* poison */ , UsesMoveableValueDebugInfo);
1824+ DontPoisonRefs , UsesMoveableValueDebugInfo);
18251825 }
18261826 }
18271827
@@ -2202,9 +2202,9 @@ bool ConsumeOperatorCopyableAddressesChecker::performSingleBasicBlockAnalysis(
22022202 if (auto varInfo = addressDebugInst.getVarInfo ()) {
22032203 SILBuilderWithScope undefBuilder (builder);
22042204 undefBuilder.setCurrentDebugScope (addressDebugInst->getDebugScope ());
2205- undefBuilder.createDebugValue (addressDebugInst-> getLoc (),
2206- SILUndef::get (address), *varInfo, false ,
2207- UsesMoveableValueDebugInfo);
2205+ undefBuilder.createDebugValue (
2206+ addressDebugInst-> getLoc (), SILUndef::get (address), *varInfo,
2207+ DontPoisonRefs, UsesMoveableValueDebugInfo);
22082208 }
22092209 addressDebugInst.markAsMoved ();
22102210 }
@@ -2319,9 +2319,9 @@ bool ConsumeOperatorCopyableAddressesChecker::performSingleBasicBlockAnalysis(
23192319 {
23202320 SILBuilderWithScope undefBuilder (builder);
23212321 undefBuilder.setCurrentDebugScope (addressDebugInst->getDebugScope ());
2322- undefBuilder.createDebugValue (addressDebugInst-> getLoc (),
2323- SILUndef::get (address), *varInfo, false ,
2324- UsesMoveableValueDebugInfo);
2322+ undefBuilder.createDebugValue (
2323+ addressDebugInst-> getLoc (), SILUndef::get (address), *varInfo,
2324+ DontPoisonRefs, UsesMoveableValueDebugInfo);
23252325 }
23262326 {
23272327 // Make sure at the reinit point to create a new debug value after the
@@ -2330,7 +2330,7 @@ bool ConsumeOperatorCopyableAddressesChecker::performSingleBasicBlockAnalysis(
23302330 SILBuilderWithScope reinitBuilder (next);
23312331 reinitBuilder.setCurrentDebugScope (addressDebugInst->getDebugScope ());
23322332 reinitBuilder.createDebugValue (addressDebugInst->getLoc (), address,
2333- *varInfo, false ,
2333+ *varInfo, DontPoisonRefs ,
23342334 UsesMoveableValueDebugInfo);
23352335 }
23362336 }
@@ -2369,9 +2369,9 @@ bool ConsumeOperatorCopyableAddressesChecker::performSingleBasicBlockAnalysis(
23692369 if (auto varInfo = addressDebugInst.getVarInfo ()) {
23702370 SILBuilderWithScope undefBuilder (builder);
23712371 undefBuilder.setCurrentDebugScope (addressDebugInst->getDebugScope ());
2372- undefBuilder.createDebugValue (addressDebugInst-> getLoc (),
2373- SILUndef::get (address), *varInfo, false ,
2374- UsesMoveableValueDebugInfo);
2372+ undefBuilder.createDebugValue (
2373+ addressDebugInst-> getLoc (), SILUndef::get (address), *varInfo,
2374+ DontPoisonRefs, UsesMoveableValueDebugInfo);
23752375 }
23762376 addressDebugInst.markAsMoved ();
23772377 }
0 commit comments