Files
swift-mirror/test/SILOptimizer/strip_debug_info.sil
Min-Yih Hsu 343d842394 [SIL][DebugInfo] PATCH 3/3: Deprecate debug_value_addr SIL instruciton
This patch removes all references to DebugValueAddrInst class and
debug_value_addr instruction in textual SIL files.
2021-08-31 12:01:04 -07:00

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 : $()
}