aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-04-02 00:39:51 +0000
committerSteve Naroff <snaroff@apple.com>2008-04-02 00:39:51 +0000
commitc822ff47d29eb3888796145dbc58d17f747a1e61 (patch)
treec85753036e88b17d6ca8846c49ea2aa75a7bdc43 /lib/Sema/SemaDecl.cpp
parente8043c39176e7f253fbd92982b077eca6bf2fd59 (diff)
Fix a comment typo and add a couple suggestions from Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 0280ef2127..c958dd1027 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -42,7 +42,7 @@ Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) const {
if (getLangOptions().ObjC1) {
// @interface and @compatibility_alias result in new type references.
// Creating a class alias is *extremely* rare.
- ObjCAliasTy::const_iterator I = ObjCAliasDecls.find((IdentifierInfo*)&II);
+ ObjCAliasTy::const_iterator I = ObjCAliasDecls.find(&II);
if (I != ObjCAliasDecls.end())
return I->second->getClassInterface();
}
@@ -141,7 +141,7 @@ Decl *Sema::LookupDecl(IdentifierInfo *II, unsigned NSI,
if (getLangOptions().ObjC1) {
// @interface and @compatibility_alias introduce typedef-like names.
// Unlike typedef's, they can only be introduced at file-scope (and are
- // not therefore not scoped decls). They can, however, be shadowed by
+ // therefore not scoped decls). They can, however, be shadowed by
// other names in IDNS_Ordinary.
ObjCAliasTy::iterator I = ObjCAliasDecls.find(II);
if (I != ObjCAliasDecls.end())