================
@@ -721,7 +721,8 @@ static bool matchesStlAllocatorFn(const Decl *D, const 
ASTContext &Ctx) {
       (MD->getNumParams() != 1 && MD->getNumParams() != 2))
     return false;
 
-  if (MD->parameters()[0]->getType().getCanonicalType() != Ctx.getSizeType())
+  if (MD->parameters()[0]->getType().getCanonicalType() !=
----------------
erichkeane wrote:

This should probably just use `Ctsx.hasSameType` isntead of the 
canonicalizations.

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

Reply via email to