Fix a bug with returning value that need to be refcounted:

we want to do a take-load out of the return address slot
instead of a normal load, or else we'll end up +1'ing an
already +1 value.

Swift SVN r1564
This commit is contained in:
John McCall
2012-04-23 17:47:07 +00:00
parent d68fee8b41
commit bc32a8aedb
9 changed files with 65 additions and 3 deletions

View File

@@ -44,6 +44,10 @@ namespace {
// FIXME
}
void loadAsTake(IRGenFunction &IGF, Address addr, Explosion &e) const {
// FIXME
}
void assign(IRGenFunction &IGF, Explosion &explosion, Address addr) const {
// FIXME
}