diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-05 01:38:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-05 01:38:34 +0000 |
commit | aa8d001787dcb67ec53bb326c8342096c2fc7fa5 (patch) | |
tree | ec2f6cddd6d5c1b39e9fc8e70b17d408e9ccb657 /lib/Sema/SemaDecl.cpp | |
parent | df042e6c2bf06b2d9ed53c52469599ac1bd93a3f (diff) |
Remove stale comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 53327e497e..467da81305 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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); } |