mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -441,6 +441,10 @@ isStringStoreToIdentifyableObject(SILInstruction *inst) {
|
||||
case SILInstructionKind::DeallocStackInst:
|
||||
case SILInstructionKind::LoadInst:
|
||||
break;
|
||||
case SILInstructionKind::DebugValueInst:
|
||||
if (DebugValueInst::hasAddrVal(user))
|
||||
break;
|
||||
LLVM_FALLTHROUGH;
|
||||
default:
|
||||
if (!mayWriteToIdentifyableObject(user)) {
|
||||
// We don't handle user. It is some instruction which may write to
|
||||
|
||||
Reference in New Issue
Block a user