Add some FIXMEs to the ASTReader code

llvm-svn: 165138
This commit is contained in:
Douglas Gregor 2012-10-03 18:36:10 +00:00
parent 559458c830
commit e4a838ac3f
1 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,8 @@ void ASTDeclReader::Visit(Decl *D) {
// FunctionDecl's body was written last after all other Stmts/Exprs.
// We only read it if FD doesn't already have a body (e.g., from another
// module).
// FIXME: Also consider = default and = delete.
// FIXME: Can we diagnose ODR violations somehow?
if (Record[Idx++] &&
(!Reader.getContext().getLangOpts().Modules || !FD->hasBody()))
FD->setLazyBody(GetCurrentCursorOffset());