================
@@ -265,10 +265,13 @@ void USRGenerator::VisitFunctionDecl(const FunctionDecl 
*D) {
     Out << '>';
   }
 
+  QualType CanonicalType = D->getType().getCanonicalType();
   // Mangle in type information for the arguments.
-  for (auto *PD : D->parameters()) {
-    Out << '#';
-    VisitType(PD->getType());
+  if (auto *FPT = CanonicalType->getAs<FunctionProtoType>()) {
----------------
mizvekov wrote:

I believe you can const qualify this, otherwise LGTM.

https://github.com/llvm/llvm-project/pull/68222
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to