[clang] [clang][ExprConst] Remove Loc param (PR #151461)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 1 22:26:49 PDT 2025
================
@@ -14723,9 +14723,10 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) {
type->isIntegralOrEnumerationType()) {
// In C++98, in-class initialization for a static data member must
// be an integer constant expression.
- SourceLocation Loc;
- if (!Init->isIntegerConstantExpr(Context, &Loc)) {
- Diag(Loc, diag::ext_in_class_initializer_non_constant)
+ // SourceLocation Loc;
----------------
tbaederr wrote:
Woops, yes.
https://github.com/llvm/llvm-project/pull/151461
More information about the cfe-commits
mailing list