]> granicus.if.org Git - clang/commitdiff
Remove stale comments.
authorTed Kremenek <kremenek@apple.com>
Fri, 5 Sep 2008 01:38:34 +0000 (01:38 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 5 Sep 2008 01:38:34 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55822 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 53327e497e5dc6bc1b763602e54bec9b7b97a54b..467da813050e1f14d72e1c93d00986d2eb1ef2a5 100644 (file)
@@ -1760,16 +1760,8 @@ Sema::DeclTy *Sema::ActOnTag(Scope *S, unsigned TagType, TagKind TK,
     // FIXME: Tag decls should be chained to any simultaneous vardecls, e.g.:
     // struct X { int A; } D;    D should chain to X.
     if (getLangOptions().CPlusPlus)
-      // FIXME: Look for a way to use RecordDecl for simple structs.
-
-      // We use 'dyn_cast' instead of 'cast' because PrevDecl might not
-      // be a CXXRecordDecl* if we had a redefinition error.  In this case,
-      // the dyn_cast will return a NULL pointer.
       New = CXXRecordDecl::Create(Context, Kind, CurContext, Loc, Name);
     else
-      // We use 'dyn_cast' instead of 'cast' because PrevDecl might not
-      // be a RecordDecl* if we had a redefinition error.  In this case,
-      // the dyn_cast will return a NULL pointer.      
       New = RecordDecl::Create(Context, Kind, CurContext, Loc, Name);
   }