mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[DebugInfo] PATCH 2/3: Duplicate logics regarding debug_value_addr
This patch replace all in-memory objects of DebugValueAddrInst with DebugValueInst + op_deref, and duplicates logics that handles DebugValueAddrInst with the latter. All related check in the tests have been updated as well. Note that this patch neither remove the DebugValueAddrInst class nor remove `debug_value_addr` syntax in the test inputs.
This commit is contained in:
@@ -374,6 +374,10 @@ static bool hasEscapingUses(SILValue address, int &numChecks) {
|
||||
case SILInstructionKind::EndAccessInst:
|
||||
// Those instructions have no result and cannot escape the address.
|
||||
break;
|
||||
case SILInstructionKind::DebugValueInst:
|
||||
if (DebugValueInst::hasAddrVal(user))
|
||||
break;
|
||||
return true;
|
||||
case SILInstructionKind::ApplyInst:
|
||||
case SILInstructionKind::TryApplyInst:
|
||||
case SILInstructionKind::BeginApplyInst:
|
||||
|
||||
Reference in New Issue
Block a user