diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2019-03-14 18:38:02 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2019-03-14 18:38:02 +0000 |
commit | 3689caebecfac1f6868e6190c45e8a4f4f433336 (patch) | |
tree | 0c5b4013dbcbd832259e60a5273de617bc94b95b /llvm/lib/Support/CommandLine.cpp | |
parent | cc8e4e839f6e33df06fc9c98ce114c53bf811db9 (diff) | |
download | llvm-3689caebecfac1f6868e6190c45e8a4f4f433336.zip llvm-3689caebecfac1f6868e6190c45e8a4f4f433336.tar.gz llvm-3689caebecfac1f6868e6190c45e8a4f4f433336.tar.bz2 |
[Sema] Fix a use-after-free of a _Nonnull ParsedAttr
We were allocating the implicit attribute in the declarator's attribute pool,
but putting into the declaration specifier's ParsedAttributesView. If there are
multiple declarators, then we'll use the attribute from the declaration
specifier after clearing out the declarators attribute pool. Fix this by
allocating the attribute in the declaration specifier's pool.
rdar://48529718
Differential revision: https://reviews.llvm.org/D59327
llvm-svn: 356187
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions