ChuanqiXu9 wrote: I don't feel bad for the patch itself. > With lazy template loading, it is possible to find non-canonical FunctionDecls But this may be concerning. Do you feel this may cause more problem? https://github.com/llvm/llvm-project/pull/154158