summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-03 16:32:40 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-03 16:32:40 +0000
commit9c33e96813da29846f5cac10eef761835c0a88e7 (patch)
treeb558bb79eb9f1cb50ce84a32b7aea1b248b10088 /clang/lib/Sema/SemaExpr.cpp
parentf52e518d050b506f871e265039434d1818391f33 (diff)
downloadbcm5719-llvm-9c33e96813da29846f5cac10eef761835c0a88e7.tar.gz
bcm5719-llvm-9c33e96813da29846f5cac10eef761835c0a88e7.zip
Fix typo in index operator overloading.
llvm-svn: 60483
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 0c17c75fceb..5aaa0dbc2f4 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;
OpenPOWER on IntegriCloud