Add comment back that Argiris pointed out that I mistakenly removed (the comments below it were stale, so I accidently removed the whole thing).

llvm-svn: 55841
This commit is contained in:
Ted Kremenek 2008-09-05 17:39:33 +00:00
parent 4f0d21592a
commit 6ddf53e4bd
1 changed files with 2 additions and 0 deletions

View File

@ -1766,6 +1766,7 @@ 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.
New = CXXRecordDecl::Create(Context, Kind, CurContext, Loc, Name);
else
New = RecordDecl::Create(Context, Kind, CurContext, Loc, Name);
@ -1878,6 +1879,7 @@ Sema::DeclTy *Sema::ActOnTagStruct(Scope *S, TagDecl::TagKind Kind, 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.
New = CXXRecordDecl::Create(Context, Kind, CurContext, Loc, Name,
dyn_cast_or_null<CXXRecordDecl>(PrevDecl));
else