mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: add a lazy_property_getter flag to SILFunction
It is set on getter-functions for lazy properties.
This commit is contained in:
@@ -1651,6 +1651,13 @@ bb0:
|
||||
return %0 : $()
|
||||
}
|
||||
|
||||
// CHECK-LABEL: sil [lazy_getter] @test_lazy_getter
|
||||
sil [lazy_getter] @test_lazy_getter : $@convention(thin) () -> () {
|
||||
bb0:
|
||||
%0 = tuple ()
|
||||
return %0 : $()
|
||||
}
|
||||
|
||||
struct EmptyStruct {}
|
||||
|
||||
sil @test_empty_destructure : $@convention(thin) () -> () {
|
||||
|
||||
Reference in New Issue
Block a user