summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-01-16 10:07:02 +0000
committerPavel Labath <labath@google.com>2017-01-16 10:07:02 +0000
commit59d725cabf44b53be32ab4402e59f89e52b51f26 (patch)
treeca83ae010bad66b9cd6e4db5aefe06b40c47b293 /llvm
parente6b5b34f6ff0c7021b13daf6d3c052f5de70aa93 (diff)
downloadbcm5719-llvm-59d725cabf44b53be32ab4402e59f89e52b51f26.tar.gz
bcm5719-llvm-59d725cabf44b53be32ab4402e59f89e52b51f26.zip
FileSpec: Fix PrependPathComponent("/")
Summary: PrependPathComponent was unconditionally inserting path separators between the path components. This is not correct if the prepended path is "/", which caused problems down the line. Fix the function to use the same algorithm as AppendPathComponent and add a test. This fixes one part of llvm.org/pr31611. Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D28677 llvm-svn: 292100
Diffstat (limited to 'llvm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud