Skip to content

Commit 2c43fb9

Browse files
cor3ntinsvkeerthy
authored andcommitted
[Clang] Fix build after 141058
Fix incorrect static assert on some platforms
1 parent e6aa27c commit 2c43fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Expr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,8 @@ static unsigned SizeOfCallExprInstance(Expr::StmtClass SC) {
14701470

14711471
// changing the size of SourceLocation, CallExpr, and
14721472
// subclasses requires careful considerations
1473-
static_assert(sizeof(SourceLocation) == 4 && sizeof(CXXOperatorCallExpr) == 32,
1474-
"we assume CXXOperatorCallExpr is 32 bytes");
1473+
static_assert(sizeof(SourceLocation) == 4 && sizeof(CXXOperatorCallExpr) <= 32,
1474+
"we assume CXXOperatorCallExpr is at most 32 bytes");
14751475

14761476
CallExpr::CallExpr(StmtClass SC, Expr *Fn, ArrayRef<Expr *> PreArgs,
14771477
ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK,

0 commit comments

Comments
 (0)