mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
This prevents a null pointer access crash when generating a thunk with an automatically deduced trivial return type. In this case, Clang calls `Sema::DeduceFunctionTypeFromReturnExpr()` which calls `Sema::getReturnTypeLoc()`, which requires this information. Part of #5514.