mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This patch removes all references to DebugValueAddrInst class and debug_value_addr instruction in textual SIL files.
19 lines
431 B
Plaintext
19 lines
431 B
Plaintext
// RUN: %target-sil-opt -enable-sil-verify-all -strip-debug-info %s | %FileCheck %s
|
|
|
|
sil_stage canonical
|
|
|
|
import Swift
|
|
import Builtin
|
|
|
|
// CHECK-LABEL: sil @test
|
|
// CHECK: bb0
|
|
// CHECK-NEXT: tuple
|
|
// CHECK-NEXT: return
|
|
sil @test : $@convention(thin) <T> (@inout T, Builtin.Int64) -> () {
|
|
bb0(%0 : $*T, %1 : $Builtin.Int64):
|
|
debug_value %0 : $*T, expr op_deref
|
|
debug_value %1 : $Builtin.Int64
|
|
%2 = tuple ()
|
|
return %2 : $()
|
|
}
|