From: Sebastian Redl Date: Wed, 3 Dec 2008 16:32:40 +0000 (+0000) Subject: Fix typo in index operator overloading. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb354721a69038ecf371c7c84fb210d2d9c70f12;p=clang Fix typo in index operator overloading. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60483 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 0c17c75fce..5aaa0dbc2f 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -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;