Introduce a new SIL-level "undef" value, useful for SIL transformations.

IRGen support is missing, Joe volenteers to implement it.


Swift SVN r9776
This commit is contained in:
Chris Lattner
2013-10-30 00:58:09 +00:00
parent 7ce3892588
commit ef93c81ffb
15 changed files with 120 additions and 26 deletions

View File

@@ -1037,3 +1037,10 @@ sil_vtable Foo {
#Foo.subscript!getter.2: _TC3tmp3Foo9subscriptFT1xSi1ySi_Sig
#Foo.subscript!setter.2: _TC3tmp3Foo9subscriptFT1xSi1ySi_Sis
}
sil @undef_value : $() -> () {
bb0:
store undef to undef : $*Builtin.Int1
unreachable
}