nridge added a comment. Haven't had a chance to try it yet, but based on a quick glance, my suspicion is that the problem is the use of `ReferenceType::getPointeeType()`, which may do more unwrapping than we want (its implementation contains a loop <https://searchfox.org/llvm/rev/a94d454390c6c351cea64cff4d4229df16d01217/clang/include/clang/AST/Type.h#2785>).
I would try using getPointeeTypeAsWritten() <https://searchfox.org/llvm/rev/a94d454390c6c351cea64cff4d4229df16d01217/clang/include/clang/AST/Type.h#2780> instead and see if that helps. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124690/new/ https://reviews.llvm.org/D124690 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits