summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-03 18:36:10 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-03 18:36:10 +0000
commite4a838ac3f2ac6ce29336bf3a67a17a8a1d877c8 (patch)
treec931624e70b8356e906fa7697e35795f3de642ee /clang/lib/Serialization
parent559458c830ee13b55318835247faabc4b08941fb (diff)
downloadbcm5719-llvm-e4a838ac3f2ac6ce29336bf3a67a17a8a1d877c8.tar.gz
bcm5719-llvm-e4a838ac3f2ac6ce29336bf3a67a17a8a1d877c8.zip
Add some FIXMEs to the ASTReader code
llvm-svn: 165138
Diffstat (limited to 'clang/lib/Serialization')
-rw-r--r--clang/lib/Serialization/ASTReaderDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp
index c291b4b2401..54344051dc0 100644
--- a/clang/lib/Serialization/ASTReaderDecl.cpp
+++ b/clang/lib/Serialization/ASTReaderDecl.cpp
@@ -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());
OpenPOWER on IntegriCloud