summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Value.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-11-03 19:29:29 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-11-03 19:57:33 -0800
commit31e14f41a21f9016050a20f07d5da03db2e8c13e (patch)
tree414a5b696961e951b4170658023c6d674756b71b /lldb/source/Core/Value.cpp
parent858b15cb9cf675b33d5c3bf17b3050d98b73ec3f (diff)
downloadbcm5719-llvm-31e14f41a21f9016050a20f07d5da03db2e8c13e.tar.gz
bcm5719-llvm-31e14f41a21f9016050a20f07d5da03db2e8c13e.zip
clang/Modules: Sink CompilerInstance::KnownModules into ModuleMap
Avoid use-after-frees when FrontendAction::BeginSourceFile is called twice on the same CompilerInstance by sinking CompilerInstance::KnownModules into ModuleMap. On the way, rename the map to CachedModuleLoads. I considered (but rejected) merging this with ModuleMap::Modules, since that only has top-level modules and this map includes submodules. This is an alternative to https://reviews.llvm.org/D58497. Thanks to nemanjai for the detailed analysis of the problem!
Diffstat (limited to 'lldb/source/Core/Value.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud