Skip to content

Commit b766376

Browse files
committed
Remove unsed parameter; NFC
1 parent 6dd96d6 commit b766376

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clang/include/clang/AST/Expr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ class Expr : public ValueStmt {
541541
/// Note: This does not perform the implicit conversions required by C++11
542542
/// [expr.const]p5.
543543
std::optional<llvm::APSInt>
544-
getIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc = nullptr,
545-
bool isEvaluated = true) const;
544+
getIntegerConstantExpr(const ASTContext &Ctx,
545+
SourceLocation *Loc = nullptr) const;
546546
bool isIntegerConstantExpr(const ASTContext &Ctx,
547547
SourceLocation *Loc = nullptr) const;
548548

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16174,8 +16174,7 @@ bool Expr::isIntegerConstantExpr(const ASTContext &Ctx,
1617416174
}
1617516175

1617616176
std::optional<llvm::APSInt>
16177-
Expr::getIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc,
16178-
bool isEvaluated) const {
16177+
Expr::getIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc) const {
1617916178
if (isValueDependent()) {
1618016179
// Expression evaluator can't succeed on a dependent expression.
1618116180
return std::nullopt;

0 commit comments

Comments
 (0)