mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
The check for a specific in `TryMapClassType` is unnecessary; immediately after it calls `ExportClassToCpp`, which has the same check. The latter also has a `context.TODO`, which provides a clearer error. Also improved the `LocId` in `ExportClassToCpp` to use the location of the first decl rather than the empty location of the class type. This is the same fix as https://github.com/carbon-language/carbon-lang/pull/7533, just applied a little more broadly. This makes the `context.TODO` above point at the class rather than the start of the source file.