[clang] [clang] Disable missing definition warning on pure virtual functions (PR #74510)
Charalampos Mitrodimas via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 5 03:10:20 PDT 2024
================
@@ -18931,7 +18931,7 @@ void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
// constant evaluated
bool NeededForConstantEvaluation =
isPotentiallyConstantEvaluatedContext(*this) &&
- isImplicitlyDefinableConstexprFunction(Func);
+ isImplicitlyDefinableConstexprFunction(Func) && !Func->isPure();
----------------
charmitro wrote:
You're actually right.
I don't really recall what I was entering back when I was developing it, but it should work now.
https://github.com/llvm/llvm-project/pull/74510
More information about the cfe-commits
mailing list