mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:41:07 +01:00
Add a separate store for computed constant values. (#3362)
This moves the instructions generated for type values out of the block in which they happen to first be referenced, and into shared storage.
This commit is contained in:
@@ -12,8 +12,12 @@ fn Main() {
|
||||
Echo({});
|
||||
}
|
||||
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: %.loc7_13.1: type = struct_type {}
|
||||
// CHECK:STDOUT: %.loc7_13.2: type = tuple_type ()
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file "empty_struct.carbon" {
|
||||
// CHECK:STDOUT: %.loc7: type = tuple_type ()
|
||||
// CHECK:STDOUT: %Echo: <function> = fn_decl @Echo
|
||||
// CHECK:STDOUT: %Main: <function> = fn_decl @Main
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
Reference in New Issue
Block a user