about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-11-23 20:31:35 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-11-24 01:28:41 +0300
commit7e76d94a225ee53fde0ddbbfd7285890d006db43 (patch)
treeb02c6caeba997db44451d65d3b1915ed62de51ce /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parenta45a302be536126accf29764b6a3dca39d57d0fe (diff)
downloadrust-7e76d94a225ee53fde0ddbbfd7285890d006db43.tar.gz
rust-7e76d94a225ee53fde0ddbbfd7285890d006db43.zip
effective visibility: Always add table entries for nodes used as parents
Previously if the parent was not in the table, and there was nothing to inherit from, the child's private visibility was used, but that's not correct - the parent may have a larger visibility so we should set it to at least the parent's private visibility.
That parent's private visibility is also inserted into the table for caching, so it's not recalculated later if used again.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions