commit | 59d725cabf44b53be32ab4402e59f89e52b51f26 | [log] [tgz] |
---|---|---|
author | Pavel Labath <labath@google.com> | Mon Jan 16 10:07:02 2017 +0000 |
committer | Pavel Labath <labath@google.com> | Mon Jan 16 10:07:02 2017 +0000 |
tree | ca83ae010bad66b9cd6e4db5aefe06b40c47b293 | |
parent | e6b5b34f6ff0c7021b13daf6d3c052f5de70aa93 [diff] |
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