Skip to content

Commit 66eaa80

Browse files
authored
[Clang] Remove redundant check for scoped enums in shift operators (llvm#152865)
This check, introduced in 0bf3140, has not been necessary since 21673c4
1 parent a325391 commit 66eaa80

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11808,12 +11808,6 @@ QualType Sema::CheckShiftOperands(ExprResult &LHS, ExprResult &RHS,
1180811808
return ResultTy;
1180911809
}
1181011810

11811-
// C++0x: Don't allow scoped enums. FIXME: Use something better than
11812-
// hasIntegerRepresentation() above instead of this.
11813-
if (isScopedEnumerationType(LHSType) ||
11814-
isScopedEnumerationType(RHSType)) {
11815-
return InvalidOperands(Loc, LHS, RHS);
11816-
}
1181711811
DiagnoseBadShiftValues(*this, LHS, RHS, Loc, Opc, LHSType);
1181811812

1181911813
// "The type of the result is that of the promoted left operand."

0 commit comments

Comments
 (0)