summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-02-02 08:40:08 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-02-02 08:40:08 +0000
commit659cffeec4663adca85940f91a43b29e8bd038fd (patch)
treeee448d9b112f5682db6fea99430bc81259f7d895 /llvm/lib/CodeGen
parentad089fe46e166d006c449902bed09401a8d4a44e (diff)
downloadbcm5719-llvm-659cffeec4663adca85940f91a43b29e8bd038fd.tar.gz
bcm5719-llvm-659cffeec4663adca85940f91a43b29e8bd038fd.zip
[Sema] Add implicit members even for invalid CXXRecordDecls
Summary: It should be safe, since other code paths are already generating implicit members even in invalid CXXRecordDecls (e.g. lookup). If we don't generate implicit members on CXXRecordDecl's completion, they will be generated by next lookup of constructors. This causes a crash when the following conditions are met: - a CXXRecordDecl is invalid, - it is provided via ExternalASTSource (e.g. from PCH), - it has inherited constructors (they create ShadowDecls), - lookup of its constructors was not run before ASTWriter serialized it. This may require the ShadowDecls created for inherited constructors to be removed from the class, but that's no longer possible since class is provided by ExternalASTSource. See provided lit test for an example. Reviewers: bkramer Reviewed By: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D42810 llvm-svn: 324062
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud