diff options
| author | Teresa Johnson <tejohnson@google.com> | 2025-10-23 19:40:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 19:40:42 -0700 |
| commit | 0341fb63f2abe2ce98434c45fef8826718f9198c (patch) | |
| tree | b943f109531b41660e0d513dc77a5f156b69ce9a /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | bcee0ee68dbdcdd5e07e16303b6a5805814d1dfd (diff) | |
| download | llvm-0341fb63f2abe2ce98434c45fef8826718f9198c.zip llvm-0341fb63f2abe2ce98434c45fef8826718f9198c.tar.gz llvm-0341fb63f2abe2ce98434c45fef8826718f9198c.tar.bz2 | |
[ThinLTO] Avoid creating map entries on lookup (NFCI) (#164873)
We could inadvertently create new entries in the PrevailingModuleForGUID
map during lookup, which was always using operator[]. In most cases we
will have one for external symbols, but not in cases where the
prevailing copy is in a native object. Or if this happened to be looked
up for a local.
Make the map private and create and use accessors.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
