]> granicus.if.org Git - clang/commitdiff
Remove the final goto from this switch making it explict which overload set is
authorChandler Carruth <chandlerc@gmail.com>
Sun, 12 Dec 2010 08:45:02 +0000 (08:45 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 12 Dec 2010 08:45:02 +0000 (08:45 +0000)
added for binary operator&.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121628 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 1a54ce271f1828b7afe7f7a779155de2697ab7a0..7d4507d7f10e6cc2141eed9318231bb44fa2848d 100644 (file)
@@ -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: