================
@@ -18347,7 +18347,7 @@ void Sema::SetFunctionBodyKind(Decl *D, SourceLocation 
Loc, FnBodyKind BodyKind,
   }
 }
 
-bool Sema::CheckOverridingFunctionAttributes(const CXXMethodDecl *New,
+bool Sema::CheckOverridingFunctionAttributes(CXXMethodDecl *New,
----------------
dougsonos wrote:

I did have to make this new Decl mutable, because the verification can 
implicitly propagate (certain) effects from the base virtual method to its 
overrides. (Originally I had done this with an ugly `const_cast` but we 
discussed this and chose instead to make the parameter mutable.)

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

Reply via email to