================
@@ -2288,7 +2288,10 @@ class CXXMethodDecl : public FunctionDecl {
                               const CXXRecordDecl *Decl);
 
   Qualifiers getMethodQualifiers() const {
-    return getType()->castAs<FunctionProtoType>()->getMethodQuals();
+    if (isExplicitObjectMemberFunction())
+      return getFunctionObjectParameterType().getQualifiers();
----------------
MythreyaK wrote:

Not 100% sure if this is the right method to use :thinking:. 

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

Reply via email to