[cfe-commits] r121628 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Dec 12 00:45:02 PST 2010
Author: chandlerc
Date: Sun Dec 12 02:45:02 2010
New Revision: 121628
URL: http://llvm.org/viewvc/llvm-project?rev=121628&view=rev
Log:
Remove the final goto from this switch making it explict which overload set is
added for binary operator&.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=121628&r1=121627&r2=121628&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Sun Dec 12 02:45:02 2010
@@ -5567,7 +5567,8 @@
// 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 @@
case OO_ExclaimEqual:
OpBuilder.addEqualEqualOrNotEqualMemberPointerOverloads();
// Fall through.
+
case OO_Less:
case OO_Greater:
case OO_LessEqual:
@@ -5612,7 +5614,6 @@
break;
case OO_Percent:
- BinaryAmp:
case OO_Caret:
case OO_Pipe:
case OO_LessLess:
More information about the cfe-commits
mailing list