aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-03-14 18:38:02 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-03-14 18:38:02 +0000
commit3689caebecfac1f6868e6190c45e8a4f4f433336 (patch)
tree0c5b4013dbcbd832259e60a5273de617bc94b95b /llvm/unittests/Support/CommandLineTest.cpp
parentcc8e4e839f6e33df06fc9c98ce114c53bf811db9 (diff)
downloadllvm-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/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions