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

Argiris Kirtzidis akyrtzi at gmail.com
Fri Sep 5 10:16:11 PDT 2008


Ted Kremenek wrote:
> 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.
>   

> -      // FIXME: Look for a way to use RecordDecl for simple structs.
>   

This is still relevant. After the new way to create RecordDecls is in 
place, I'll take a look into this.

-Argiris

> -
> -      // 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);
>    }
>    
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>   



More information about the cfe-commits mailing list