if (SawUnorderedAtomic)
PreheaderLoad->setOrdering(AtomicOrdering::Unordered);
PreheaderLoad->setAlignment(Alignment);
- PreheaderLoad->dropLocation();
+ PreheaderLoad->setDebugLoc(DebugLoc());
if (AATags)
PreheaderLoad->setAAMetadata(AATags);
SSA.AddAvailableValue(Preheader, PreheaderLoad);
// be misleading while debugging.
for (auto &I : *ThenBB) {
if (!SpeculatedStoreValue || &I != SpeculatedStore)
- I.dropLocation();
+ I.setDebugLoc(DebugLoc());
I.dropUnknownNonDebugMetadata();
}
// When we fold the bonus instructions we want to make sure we
// reset their debug locations in order to avoid stepping on dead
// code caused by folding dead branches.
- NewBonusInst->dropLocation();
+ NewBonusInst->setDebugLoc(DebugLoc());
RemapInstruction(NewBonusInst, VMap,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
// Reset the condition debug location to avoid jumping on dead code
// as the result of folding dead branches.
- CondInPred->dropLocation();
+ CondInPred->setDebugLoc(DebugLoc());
RemapInstruction(CondInPred, VMap,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);