summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-09-05 17:39:33 +0000
committerTed Kremenek <kremenek@apple.com>2008-09-05 17:39:33 +0000
commit6ddf53e4bda2ebb9c0206186153bf291ff4d6a67 (patch)
treeb8ba2f8da0bf2fec534c24f2ec9e9ba521c67de4 /clang
parent4f0d21592a37bcb2a7925cacf7c47b5b485e6fbb (diff)
downloadbcm5719-llvm-6ddf53e4bda2ebb9c0206186153bf291ff4d6a67.tar.gz
bcm5719-llvm-6ddf53e4bda2ebb9c0206186153bf291ff4d6a67.zip
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
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index df911823833..75fcc5173ed 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud