summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-26 06:43:45 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-26 06:43:45 +0000
commit08d96d518210788a2a8f8beaf5b0f139a19c1057 (patch)
tree055d33b054856ea5317cd80c00bb678bf98fcae3 /clang/lib
parent002a2cb207c00e34f5fe48540eeda2dcc0d4d05f (diff)
downloadbcm5719-llvm-08d96d518210788a2a8f8beaf5b0f139a19c1057.tar.gz
bcm5719-llvm-08d96d518210788a2a8f8beaf5b0f139a19c1057.zip
Fix a minor typo in the handling of the conditional operator for Objective-C interface pointers
llvm-svn: 60096
Diffstat (limited to 'clang/lib')
-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 a13bcbab629..b22ae7d1f2b 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -1644,7 +1644,7 @@ inline QualType Sema::CheckConditionalOperands( // C99 6.5.15
Context.canAssignObjCInterfaces(LHSIface, RHSIface)) {
compositeType = lexT;
} else if (LHSIface && RHSIface &&
- Context.canAssignObjCInterfaces(LHSIface, RHSIface)) {
+ Context.canAssignObjCInterfaces(RHSIface, LHSIface)) {
compositeType = rexT;
} else if (Context.isObjCIdType(lhptee) ||
Context.isObjCIdType(rhptee)) {
OpenPOWER on IntegriCloud