summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectThread.h
diff options
context:
space:
mode:
authorMatt Davis <Matthew.Davis@sony.com>2018-11-05 17:25:26 +0000
committerMatt Davis <Matthew.Davis@sony.com>2018-11-05 17:25:26 +0000
commitc50240dac133451b3eae5b89cecca4c1c4af9fd4 (patch)
treeab187ccae017b4f3139c083e1590a061064ac292 /lldb/source/Commands/CommandObjectThread.h
parenta7b4ae9d373460ef9330d74b6a24594ad2b74c8c (diff)
downloadbcm5719-llvm-c50240dac133451b3eae5b89cecca4c1c4af9fd4.tar.gz
bcm5719-llvm-c50240dac133451b3eae5b89cecca4c1c4af9fd4.zip
[AST] Get aliased type info from an aliased TemplateSpecialization.
Summary: Previously the TemplateSpecialization instance for 'template_alias', in the example below, returned the type info of the canonical type (int). This ignored the type alias if the template type happen to be aliased. Before this patch, the assert would trigger with an alignment of 4: ``` typedef int __attribute__(( aligned( 16 ) )) aligned_int; template < typename > using template_alias = aligned_int; static_assert( alignof( template_alias<void>) == 16, "" ); ``` This patch checks if the TemplateSpecialization type has an alias, and if so will return the type information for the aliased type, else the canonical type's info is returned (original behavior). I believe that this is the desired behavior. Reviewers: aaron.ballman, rjmccall Reviewed By: rjmccall Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D54048 llvm-svn: 346146
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud