]> granicus.if.org Git - clang/commitdiff
Fix typo in index operator overloading.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Wed, 3 Dec 2008 16:32:40 +0000 (16:32 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Wed, 3 Dec 2008 16:32:40 +0000 (16:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 0c17c75fceb29d4417bd6630335602f301ed08a8..5aaa0dbc2f4fcf8ff8b0fb6602ccd7cff105ca88 100644 (file)
@@ -870,7 +870,7 @@ ActOnArraySubscriptExpr(Scope *S, ExprTy *Base, SourceLocation LLoc,
       LHSExp->getType()->isRecordType() || 
       LHSExp->getType()->isEnumeralType() ||
       RHSExp->getType()->isRecordType() ||
-      RHSExp->getType()->isRecordType()) {
+      RHSExp->getType()->isEnumeralType()) {
     // Add the appropriate overloaded operators (C++ [over.match.oper]) 
     // to the candidate set.
     OverloadCandidateSet CandidateSet;