Skip to content

Commit 00c10b7

Browse files
committed
fix build
1 parent 11518ee commit 00c10b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ static void checkEnumArithmeticConversions(Sema &S, Expr *LHS, Expr *RHS,
15181518
unsigned DiagID;
15191519
// In C++ 26, usual arithmetic conversions between 2 different enum types
15201520
// are ill-formed.
1521-
if (getLangOpts().CPlusPlus26)
1521+
if (S.getLangOpts().CPlusPlus26)
15221522
DiagID = diag::warn_conv_mixed_enum_types_cxx26;
15231523
else if (!L->castAs<EnumType>()->getDecl()->hasNameForLinkage() ||
15241524
!R->castAs<EnumType>()->getDecl()->hasNameForLinkage()) {

0 commit comments

Comments
 (0)