[clang][ASTImporter] Fix import of function with auto return type.
authorBalázs Kéri <1.int32@gmail.com>
Fri, 10 Jun 2022 08:00:34 +0000 (10:00 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Fri, 10 Jun 2022 08:18:53 +0000 (10:18 +0200)
commitf93dee10336a2361da528db0ff0f7188acba9627
tree7f8a2dfcfeb178f5e664735180baf6067a1dbcbc
parent76b57ef88c4e79ddcfc40393a26de9185c6df9a3
[clang][ASTImporter] Fix import of function with auto return type.

Fix a case of importing a function with auto return type
that is resolved with a type template argument that is declared
inside the function.
Fixes #55500

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D127396
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp