diff options
| author | Steve Naroff <snaroff@apple.com> | 2009-07-29 14:06:03 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2009-07-29 14:06:03 +0000 |
| commit | d390fd99d9886add3a53b21cc575fede92b55b1f (patch) | |
| tree | 6e6c7b93c5c0c8404144588f30da03882cabc635 /clang/lib | |
| parent | 955a067bddaae567ee48261da14c7438d613a84e (diff) | |
| download | bcm5719-llvm-d390fd99d9886add3a53b21cc575fede92b55b1f.tar.gz bcm5719-llvm-d390fd99d9886add3a53b21cc575fede92b55b1f.zip | |
Incorporate feedback from Chris (on r76979).
llvm-svn: 77452
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index ba9d51dfb56..9114c0b5c19 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -2341,7 +2341,7 @@ Sema::ActOnMemberReferenceExpr(Scope *S, ExprArg Base, SourceLocation OpLoc, } // We have an 'id' type. Rather than fall through, we check if this // is a reference to 'isa'. - if (&Member == &Context.Idents.get("isa")) + if (Member.isStr("isa")) return Owned(new (Context) ObjCIsaExpr(BaseExpr, true, MemberLoc, Context.getObjCIdType())); } @@ -2478,7 +2478,7 @@ Sema::ActOnMemberReferenceExpr(Scope *S, ExprArg Base, SourceLocation OpLoc, // Handle the following exceptional case (*Obj).isa. if (OpKind == tok::period && BaseType->isSpecificBuiltinType(BuiltinType::ObjCId) && - &Member == &Context.Idents.get("isa")) + Member.isStr("isa")) return Owned(new (Context) ObjCIsaExpr(BaseExpr, false, MemberLoc, Context.getObjCIdType())); |

