summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorGabor Marton <martongabesz@gmail.com>2018-09-17 12:04:52 +0000
committerGabor Marton <martongabesz@gmail.com>2018-09-17 12:04:52 +0000
commitac3a5d66c6d411514397ffd710743f56f7f05c86 (patch)
treec97fe667a6d68daa1593561850eeaa210b4d755a /lldb/packages/Python/lldbsuite
parent83ace12e861599f808e7dae2880c3a98f8a076f0 (diff)
downloadbcm5719-llvm-ac3a5d66c6d411514397ffd710743f56f7f05c86.tar.gz
bcm5719-llvm-ac3a5d66c6d411514397ffd710743f56f7f05c86.zip
[ASTImporter] Fix import of VarDecl init
Summary: The init expression of a VarDecl is overwritten in the "To" context if we import a VarDecl without an init expression (and with a definition). Please refer to the added tests, especially InitAndDefinitionAreInDifferentTUs. This patch fixes the malfunction by importing the whole Decl chain similarly as we did that in case of FunctionDecls. We handle the init expression similarly to a definition, alas only one init expression will be in the merged ast. Reviewers: a_sidorin, xazax.hun, r.stahl, a.sidorin Subscribers: rnkovacs, dkrupp, cfe-commits Differential Revision: https://reviews.llvm.org/D51597 llvm-svn: 342384
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud