mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 03:46:42 +00:00
Replace GetCurrentReturnSlot with GetReturnedVarParam (#6571)
Not all functions have a return slot, and once we have composite forms, functions will be able to have any number of return slots. Obtaining a unique return slot for a function only makes sense in `returned var` handling.
This commit is contained in:
1 parent
3c70a9f59b
commit
6985ecb1d4
219 files changed
+1097
-1089
No files matched your search
@@ -3070,7 +3070,7 @@ fn F() {
|
||||
// CHECK:STDOUT: %.loc14_14: ref %B = value_as_ref %x.ref.loc14_14
|
||||
// CHECK:STDOUT: %addr.loc14_12.2: %ptr.a04 = addr_of %.loc14_14
|
||||
// CHECK:STDOUT: %operator+__carbon_thunk.call: init %i32 = call imports.%operator+__carbon_thunk.decl(%addr.loc14_12.1, %addr.loc14_12.2)
|
||||
// CHECK:STDOUT: return %operator+__carbon_thunk.call to %return
|
||||
// CHECK:STDOUT: return %operator+__carbon_thunk.call to %return.param
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: --- import_overloading.carbon
|
||||
|
||||
Reference in new issue
Block a user