diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-02-25 13:11:28 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-02-25 13:20:54 +0100 |
commit | 93b6e1924081874039e6c88828db8e0ab7bbba04 (patch) | |
tree | 492a96a375033a00e9876d1831839cf109e85c9b /llvm/lib/Support/Unix/Unix.h | |
parent | 3950093951f49314f2c61157be96aa72f9a0e2e0 (diff) | |
download | llvm-93b6e1924081874039e6c88828db8e0ab7bbba04.zip llvm-93b6e1924081874039e6c88828db8e0ab7bbba04.tar.gz llvm-93b6e1924081874039e6c88828db8e0ab7bbba04.tar.bz2 |
[lldb] Initialize NameSearchContext::m_namespace_map in constructor
This member is for some reason initialized in ClangASTSource::FindExternalVisibleDecls
so all other functions using this member dereference a nullptr unless we
call this function before that. Let's just initialize this in the constructor.
This should be NFC as the only side effect is that we don't reset the namespace map
when calling ClangASTSource::FindExternalVisibleDecls multiple times (and we never
call this function multiple times for one NameSearchContext from what I can see).
Diffstat (limited to 'llvm/lib/Support/Unix/Unix.h')
0 files changed, 0 insertions, 0 deletions