summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-04-02 19:48:11 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-04-02 19:48:11 +0000
commitaf913156685a910c4930c40e72a4f641f268a83f (patch)
treed12ec96cb15a9c60d16b8eb22e595d5682f82f19 /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
parent3299ead8e9ff3d65ff133518d4df84dc2a424c72 (diff)
downloadbcm5719-llvm-af913156685a910c4930c40e72a4f641f268a83f.tar.gz
bcm5719-llvm-af913156685a910c4930c40e72a4f641f268a83f.zip
[Sema] Fix a use-after-deallocate of a ParsedAttr
moveAttrFromListToList only makes sense when moving an attribute to a list with a pool that's either equivalent, or has a shorter lifetime. Therefore, using it to move a ParsedAttr from a declarator to a declaration specifier doesn't make sense, since the declaration specifier's pool outlives the declarator's. The patch adds a new function, ParsedAttributes::takeOneFrom, which transfers the attribute from one pool to another, fixing the use-after-deallocate. rdar://49175426 Differential revision: https://reviews.llvm.org/D60101 llvm-svn: 357516
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud