mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 16:26:44 +00:00
Give ReturnExpr a target only when initialization is in-place (#6570)
Also clarify and enforce that `ConversionTarget::init_id` is used only as storage for in-place initialization, and correspondingly rename it to `storage_id`.
This commit is contained in:
1 parent
93c7c9ad96
commit
e1ec8d42d1
194 files changed
+575
-556
No files matched your search
@@ -3168,7 +3168,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_Plus__carbon_thunk.call: init %i32 = call imports.%operator_Plus__carbon_thunk.decl(%addr.loc14_12.1, %addr.loc14_12.2)
|
||||
// CHECK:STDOUT: return %operator_Plus__carbon_thunk.call to %return.param
|
||||
// CHECK:STDOUT: return %operator_Plus__carbon_thunk.call
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: --- import_overloading.carbon
|
||||
|
||||
Reference in new issue
Block a user