diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2020-03-02 16:30:16 -0800 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2020-03-02 16:49:53 -0800 |
commit | 29a4239d31c6d8ccc557afbe0999aa096ca95cc6 (patch) | |
tree | 61c5ea502f4b185089b3bdb887c1cd32f428ffaa /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | 44fa47c9e7eac68bed624246ad4edf7570a6397b (diff) | |
download | llvm-29a4239d31c6d8ccc557afbe0999aa096ca95cc6.zip llvm-29a4239d31c6d8ccc557afbe0999aa096ca95cc6.tar.gz llvm-29a4239d31c6d8ccc557afbe0999aa096ca95cc6.tar.bz2 |
[Sema] Fix a crash when attaching comments to an implicit decl
When an implicitly generated decl was the first entry in the group, we
attempted to lookup comments with an empty FileID, leading to crashes. Avoid
this by trying to use the other declarations in the group, and then bailing out
if none are valid.
rdar://59919733
Differential revision: https://reviews.llvm.org/D75483
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions