diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-05 17:39:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-05 17:39:33 +0000 |
commit | 2b345eb7832dd4ffcc91e795d8f95bdd62e9e95a (patch) | |
tree | 7144dd14be2619d7dcc70481546c7f837c27f243 /lib/Sema/SemaDecl.cpp | |
parent | 4b7c98378ae0c1a3635f0b7756848b4a9923f8bc (diff) |
Add comment back that Argiris pointed out that I mistakenly removed (the comments below it were stale, so I accidently removed the whole thing).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index df91182383..75fcc5173e 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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 |