aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-07-29 14:06:03 +0000
committerSteve Naroff <snaroff@apple.com>2009-07-29 14:06:03 +0000
commit99b10be143e3148b9499af4c0e9ebaf46757cfe6 (patch)
tree9e8d910b4b5bb46898c18e094206dad4ba0fc215 /lib/Sema/SemaExpr.cpp
parentef0cb8e62d090ad88a01ca9fa89e48d7416f0ac7 (diff)
Incorporate feedback from Chris (on r76979).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index ba9d51dfb5..9114c0b5c1 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/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()));