From: Chandler Carruth Date: Sun, 12 Dec 2010 08:45:02 +0000 (+0000) Subject: Remove the final goto from this switch making it explict which overload set is X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1409467542f2b3dc7f563f7e56ba54158a70b0e;p=clang Remove the final goto from this switch making it explict which overload set is added for binary operator&. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121628 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 1a54ce271f..7d4507d7f1 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -5567,7 +5567,8 @@ Sema::AddBuiltinOperatorCandidates(OverloadedOperatorKind Op, // operator '->', the built-in candidates set is empty. break; - goto BinaryAmp; + OpBuilder.addBinaryBitwiseArithmeticOverloads(Op); + break; case OO_PlusPlus: case OO_MinusMinus: @@ -5598,6 +5599,7 @@ Sema::AddBuiltinOperatorCandidates(OverloadedOperatorKind Op, case OO_ExclaimEqual: OpBuilder.addEqualEqualOrNotEqualMemberPointerOverloads(); // Fall through. + case OO_Less: case OO_Greater: case OO_LessEqual: @@ -5612,7 +5614,6 @@ Sema::AddBuiltinOperatorCandidates(OverloadedOperatorKind Op, break; case OO_Percent: - BinaryAmp: case OO_Caret: case OO_Pipe: case OO_LessLess: