diff options
| author | Gabor Marton <martongabesz@gmail.com> | 2018-11-20 14:19:39 +0000 |
|---|---|---|
| committer | Gabor Marton <martongabesz@gmail.com> | 2018-11-20 14:19:39 +0000 |
| commit | f5e4f0af7b450562af46a5df5e071bc79d021c16 (patch) | |
| tree | 85712c1946e513d6c3381c332817da4066a357a9 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
| parent | 6e6b4ac18e7c580d6c439c768aa1954cd05a5342 (diff) | |
| download | bcm5719-llvm-f5e4f0af7b450562af46a5df5e071bc79d021c16.tar.gz bcm5719-llvm-f5e4f0af7b450562af46a5df5e071bc79d021c16.zip | |
[ASTImporter] Set redecl chain of functions before any other import
Summary:
FunctionDecl import starts with a lookup and then we create a new Decl.
Then in case of CXXConstructorDecl we further import other Decls
(base classes, members through CXXConstructorDecl::inits()) before connecting
the redecl chain. During those in-between imports structural eq fails
because the canonical decl is different. This commit fixes this.
Synthesizing a test seemed extremely hard, however, Xerces analysis
reproduces the problem.
Reviewers: a_sidorin, a.sidorin
Subscribers: rnkovacs, dkrupp, Szelethus, cfe-commits
Differential Revision: https://reviews.llvm.org/D53702
llvm-svn: 347306
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions

