Fix incorrect application of invalid type on imports. (#3902)

In handle_class and handle_interface we assign TypeType, so is more
consistent. I think this had been missed because we haven't really been
using these declarations (historically, declarations didn't have a
type). It seems not to significantly affect output at present, although
I found this while trying to change merge behavior.
This commit is contained in:
Jon Ross-Perkins
2024-04-22 20:34:27 +00:00
committed by GitHub
parent 280a25b863
commit 76a5cf5f50
35 changed files with 85 additions and 85 deletions
+2 -2
View File
@@ -105,9 +105,9 @@ fn G(c: Impl.C) {
// CHECK:STDOUT: }
// CHECK:STDOUT: %Impl: <namespace> = namespace [template] {}
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
// CHECK:STDOUT: %C.decl: invalid = class_decl @C [template = constants.%C] {}
// CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {}
// CHECK:STDOUT: %import_ref.1 = import_ref ir2, inst+10, unloaded
// CHECK:STDOUT: %HasF.decl: invalid = interface_decl @HasF [template = constants.%.2] {}
// CHECK:STDOUT: %HasF.decl: type = interface_decl @HasF [template = constants.%.2] {}
// CHECK:STDOUT: %import_ref.2: <associated <function> in HasF> = import_ref ir2, inst+7, loc_20 [template = constants.%.6]
// CHECK:STDOUT: %import_ref.3 = import_ref ir2, inst+4, unloaded
// CHECK:STDOUT: %import_ref.4 = import_ref ir2, inst+5, unloaded