Skip to content

Commit fc0a4c7

Browse files
committed
[Clang] Remove redundant check for scoped enums in shift operators
This check, introduced in 0bf3140, has not been necessary since 21673c4
1 parent a708b4b commit fc0a4c7

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
@@ -11747,12 +11747,6 @@ QualType Sema::CheckShiftOperands(ExprResult &LHS, ExprResult &RHS,
1174711747
!RHSType->hasIntegerRepresentation())
1174811748
return InvalidOperands(Loc, LHS, RHS);
1174911749

11750-
// C++0x: Don't allow scoped enums. FIXME: Use something better than
11751-
// hasIntegerRepresentation() above instead of this.
11752-
if (isScopedEnumerationType(LHSType) ||
11753-
isScopedEnumerationType(RHSType)) {
11754-
return InvalidOperands(Loc, LHS, RHS);
11755-
}
1175611750
DiagnoseBadShiftValues(*this, LHS, RHS, Loc, Opc, LHSType);
1175711751

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

0 commit comments

Comments
 (0)