summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2017-07-25 10:22:06 +0000
committerManuel Klimek <klimek@google.com>2017-07-25 10:22:06 +0000
commit1b29b4f9533a012755c78383dc93256c4a0b306d (patch)
tree1363d72f0bd7513ef0698b1858f0597f1b7cf878 /lldb/packages/Python/lldbsuite/test/python_api
parente235bd1d03234873047357656f32659b84f1c62f (diff)
downloadbcm5719-llvm-1b29b4f9533a012755c78383dc93256c4a0b306d.tar.gz
bcm5719-llvm-1b29b4f9533a012755c78383dc93256c4a0b306d.zip
Fix incorrect use of current directory to find moved paths in ASTReader.
CurrentDir was set as the path of the current module, but that can change as part of a chain of loaded modules. When we try to locate a file mentioned in a module that does not exist, we use a heuristic to look at the relative path between the original location of the module and the file we look for, and use that relatively to the CurrentDir. This only works if CurrentDir is the same as the (current) path of the module file the file was mentioned in; if it is not, we look at the path relatively to the wrong directory, and can end up reading random unrelated files that happen to have the same name. This patch fixes this by using the BaseDirectory of the module file the file we look for was mentioned in instead of the CurrentDir heuristic. Differential Revision: https://reviews.llvm.org/D35828 llvm-svn: 308962
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud