From 9c33e96813da29846f5cac10eef761835c0a88e7 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Wed, 3 Dec 2008 16:32:40 +0000 Subject: [PATCH] Fix typo in index operator overloading. llvm-svn: 60483 --- clang/lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 0c17c75fceb2..5aaa0dbc2f4f 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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;