Author: Corentin Jabot Date: 2025-05-29T11:06:10+02:00 New Revision: 2a8495c2863c385cdf10d8d23a991326f82f742a
URL: https://github.com/llvm/llvm-project/commit/2a8495c2863c385cdf10d8d23a991326f82f742a DIFF: https://github.com/llvm/llvm-project/commit/2a8495c2863c385cdf10d8d23a991326f82f742a.diff LOG: [Clang] Fix build after 141058 Fix incorrect static assert on some platforms Added: Modified: clang/lib/AST/Expr.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index 6fa6d1c6c0892..3993db84978a8 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -1470,8 +1470,8 @@ static unsigned SizeOfCallExprInstance(Expr::StmtClass SC) { // changing the size of SourceLocation, CallExpr, and // subclasses requires careful considerations -static_assert(sizeof(SourceLocation) == 4 && sizeof(CXXOperatorCallExpr) == 32, - "we assume CXXOperatorCallExpr is 32 bytes"); +static_assert(sizeof(SourceLocation) == 4 && sizeof(CXXOperatorCallExpr) <= 32, + "we assume CXXOperatorCallExpr is at most 32 bytes"); CallExpr::CallExpr(StmtClass SC, Expr *Fn, ArrayRef<Expr *> PreArgs, ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits