[cfe-commits] r55822 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Ted Kremenek kremenek at apple.com
Thu Sep 4 18:38:34 PDT 2008


Author: kremenek
Date: Thu Sep  4 20:38:34 2008
New Revision: 55822

URL: http://llvm.org/viewvc/llvm-project?rev=55822&view=rev
Log:
Remove stale comments.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=55822&r1=55821&r2=55822&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Sep  4 20:38:34 2008
@@ -1760,16 +1760,8 @@
     // 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);
   }
   





More information about the cfe-commits mailing list