diff options
author | Pavel Labath <labath@google.com> | 2017-01-16 10:07:02 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-01-16 10:07:02 +0000 |
commit | 59d725cabf44b53be32ab4402e59f89e52b51f26 (patch) | |
tree | ca83ae010bad66b9cd6e4db5aefe06b40c47b293 /llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | |
parent | e6b5b34f6ff0c7021b13daf6d3c052f5de70aa93 (diff) | |
download | bcm5719-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/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp')
0 files changed, 0 insertions, 0 deletions