aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2025-10-23 19:40:42 -0700
committerGitHub <noreply@github.com>2025-10-23 19:40:42 -0700
commit0341fb63f2abe2ce98434c45fef8826718f9198c (patch)
treeb943f109531b41660e0d513dc77a5f156b69ce9a /clang/lib/Frontend/CompilerInvocation.cpp
parentbcee0ee68dbdcdd5e07e16303b6a5805814d1dfd (diff)
downloadllvm-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