summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CostModel.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-03-18 22:33:59 +0000
committerZachary Turner <zturner@google.com>2016-03-18 22:33:59 +0000
commite8670448247186a045e856cceaf1f48be7e88a32 (patch)
tree3536b1c81131c09b386660ad997b4562b1811ea2 /llvm/lib/Analysis/CostModel.cpp
parentc89ed09200d70adfecddbd773648aaafc5cb1184 (diff)
downloadbcm5719-llvm-e8670448247186a045e856cceaf1f48be7e88a32.tar.gz
bcm5719-llvm-e8670448247186a045e856cceaf1f48be7e88a32.zip
Fix a build issue where the python module could become stale.
We are using hardlinks instead of symlinks, and we attempted to have some logic where we don't re-create the link if the target file already exists. This logic is faulty, however, when you manually delete the source file (e.g. liblldb.dll) and then rebuild lldb so that a brand new liblldb.dll gets written. Now the two files have different inodes, but the target exists, so we would not remake the link and the target would become stale. We fix this by only doing the optimization if they are really the exact same file (by comparing inode numbers), and if they are not the same file but the target exists, we delete it and re-create the link. llvm-svn: 263844
Diffstat (limited to 'llvm/lib/Analysis/CostModel.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud