mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #39082 from mshockwave/dev-deprecate-debug-val-addr
[SIL][DebugInfo] PATCH 3/3: Deprecate debug_value_addr SIL instruciton
This commit is contained in:
@@ -158,7 +158,7 @@ bool swift::isInstructionTriviallyDead(SILInstruction *inst) {
|
||||
if (isa<MarkUninitializedInst>(inst))
|
||||
return false;
|
||||
|
||||
if (isa<DebugValueInst>(inst) || isa<DebugValueAddrInst>(inst))
|
||||
if (isa<DebugValueInst>(inst))
|
||||
return false;
|
||||
|
||||
// These invalidate enums so "write" memory, but that is not an essential
|
||||
@@ -756,9 +756,14 @@ getConcreteValueOfExistentialBoxAddr(SILValue addr, SILInstruction *ignoreUser)
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::DeallocStackInst:
|
||||
case SILInstructionKind::DebugValueAddrInst:
|
||||
case SILInstructionKind::LoadInst:
|
||||
break;
|
||||
case SILInstructionKind::DebugValueInst:
|
||||
if (!DebugValueInst::hasAddrVal(stackUser)) {
|
||||
if (stackUser != ignoreUser)
|
||||
return SILValue();
|
||||
}
|
||||
break;
|
||||
case SILInstructionKind::StoreInst: {
|
||||
auto *store = cast<StoreInst>(stackUser);
|
||||
assert(store->getSrc() != stackLoc && "cannot store an address");
|
||||
|
||||
Reference in New Issue
Block a user