SIL: add a lazy_property_getter flag to SILFunction

It is set on getter-functions for lazy properties.
This commit is contained in:
Erik Eckstein
2020-03-12 11:28:46 +01:00
parent 0be8357dcc
commit ae93e60072
15 changed files with 88 additions and 24 deletions

View File

@@ -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) () -> () {