Author: Aaron Ballman Date: 2023-09-29T07:58:19-04:00 New Revision: b7663760a54f31b46f4c9b5608c2c0c20c98efb2
URL: https://github.com/llvm/llvm-project/commit/b7663760a54f31b46f4c9b5608c2c0c20c98efb2 DIFF: https://github.com/llvm/llvm-project/commit/b7663760a54f31b46f4c9b5608c2c0c20c98efb2.diff LOG: Remove unsed parameter; NFC Added: Modified: clang/include/clang/AST/Expr.h clang/lib/AST/ExprConstant.cpp Removed: ################################################################################ diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index 1c717b520dd87c6..fcda738ef4c552d 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/include/clang/AST/Expr.h @@ -541,8 +541,8 @@ class Expr : public ValueStmt { /// Note: This does not perform the implicit conversions required by C++11 /// [expr.const]p5. std::optional<llvm::APSInt> - getIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc = nullptr, - bool isEvaluated = true) const; + getIntegerConstantExpr(const ASTContext &Ctx, + SourceLocation *Loc = nullptr) const; bool isIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc = nullptr) const; diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index fea06b97259fe31..f0d53d6ae18e804 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -16174,8 +16174,7 @@ bool Expr::isIntegerConstantExpr(const ASTContext &Ctx, } std::optional<llvm::APSInt> -Expr::getIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc, - bool isEvaluated) const { +Expr::getIntegerConstantExpr(const ASTContext &Ctx, SourceLocation *Loc) const { if (isValueDependent()) { // Expression evaluator can't succeed on a dependent expression. return std::nullopt; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits