diff options
| author | Douglas Gregor <dgregor@apple.com> | 2008-11-26 06:43:45 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2008-11-26 06:43:45 +0000 |
| commit | 08d96d518210788a2a8f8beaf5b0f139a19c1057 (patch) | |
| tree | 055d33b054856ea5317cd80c00bb678bf98fcae3 /clang/lib | |
| parent | 002a2cb207c00e34f5fe48540eeda2dcc0d4d05f (diff) | |
| download | bcm5719-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.cpp | 2 |
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)) { |

