summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-02-08 22:23:09 +0000
committerNico Weber <nicolasweber@gmx.de>2016-02-08 22:23:09 +0000
commit26911c7733dfcc345074f9148a449c10962216fa (patch)
treec4921e1756e3e48921c68e777fa8d9a7ca091242 /lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py
parent06dacd851fe4df04d9ad321950755f7d1ed0c6e5 (diff)
downloadbcm5719-llvm-26911c7733dfcc345074f9148a449c10962216fa.tar.gz
bcm5719-llvm-26911c7733dfcc345074f9148a449c10962216fa.zip
Make ParentMap work with explicit specializations of function templates.
For an explicit specialization, we first build a FunctionDecl, and then we call SubstDecl() on it to build a second FunctionDecl, which has the first FunctionDecl as canonical decl. The address of an explicit specialization of function template used to be the canonical decl of the FunctionDecl. This is different from all the other DeduceTemplateArguments() calls in SemaOverload, and since the canonical decl isn't visited by ParentMap while the redecl is, it also made ParentMap assert when computing the parent of a address-of-explicit-specialization-fun-template. To fix, remove the getCanonicalDecl() call. No behavior difference for clang, but it fixes an assert in ParentMap (which is e.g. used by libTooling). llvm-svn: 260159
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud