Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls
replaced by visible decls. Make sure that all paths through checkCorrectionVisibility set the RequiresImport flag appropriately, so we don't end up using a stale value. Patch by Jorge Gorbe! Differential Revision: https://reviews.llvm.org/D30963 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304745 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaLookup.cpp 6 additions, 7 deletionslib/Sema/SemaLookup.cpp
- test/Modules/Inputs/crash-typo-correction-visibility/module.h 1 addition, 0 deletions.../Modules/Inputs/crash-typo-correction-visibility/module.h
- test/Modules/Inputs/crash-typo-correction-visibility/module.modulemap 3 additions, 0 deletions.../Inputs/crash-typo-correction-visibility/module.modulemap
- test/Modules/crash-typo-correction-visibility.cpp 10 additions, 0 deletionstest/Modules/crash-typo-correction-visibility.cpp
Loading
Please register or sign in to comment