diff options
author | Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> | 2025-01-08 10:04:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 10:04:44 +0530 |
commit | b4ae4192989f97503626748421f32745897941ba (patch) | |
tree | 549ed4d61eb5a35c513898ef546b9450d37c7f85 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 9020d193e6ef03e8070ac44078c5d8d9e86c4f2a (diff) | |
download | llvm-b4ae4192989f97503626748421f32745897941ba.zip llvm-b4ae4192989f97503626748421f32745897941ba.tar.gz llvm-b4ae4192989f97503626748421f32745897941ba.tar.bz2 |
[clang] [NFC] explicitly check if ParentMap contains key (#121736)
The implementation of ParentMap assumes that the key is absent if it is
mapped to nullptr. This breaks when trying to store a tuple as the value
type. Remove this assumption by explicit uses of `try_emplace()`.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions