if (SawUnorderedAtomic)
PreheaderLoad->setOrdering(AtomicOrdering::Unordered);
PreheaderLoad->setAlignment(Alignment);
- PreheaderLoad->setDebugLoc(DebugLoc());
+ PreheaderLoad->dropLocation();
if (AATags)
PreheaderLoad->setAAMetadata(AATags);
SSA.AddAvailableValue(Preheader, PreheaderLoad);
// be misleading while debugging.
for (auto &I : *ThenBB) {
if (!SpeculatedStoreValue || &I != SpeculatedStore)
- I.setDebugLoc(DebugLoc());
+ I.dropLocation();
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->setDebugLoc(DebugLoc());
+ NewBonusInst->dropLocation();
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->setDebugLoc(DebugLoc());
+ CondInPred->dropLocation();
RemapInstruction(CondInPred, VMap,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);