[PATCH] D32981: [ASTImporter] Improve handling of incomplete types
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 10 05:42:28 PDT 2017
a.sidorin accepted this revision.
a.sidorin added a comment.
This revision is now accepted and ready to land.
Looks good!
================
Comment at: lib/AST/ASTImporter.cpp:1757
D2->setAnonymousStructOrUnion(true);
+ if (PrevDecl) {
+ D2->setPreviousDecl(PrevDecl);
----------------
By the way, should we do the same for some other kinds of Decls (like FunctionDecl)? If so, could you write a NOTE comment?
Repository:
rL LLVM
https://reviews.llvm.org/D32981
More information about the cfe-commits
mailing list