diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-05-05 16:39:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-05-05 16:39:22 +0000 |
commit | 463a719d36fe8909377e839706fb49ed9103eba2 (patch) | |
tree | f83b8b3aee4436746fca96b2773daedebe827595 /lib/Support/Unix/PathV2.inc | |
parent | 92bb514612a7d66a0695b257a3d8f0b9cebcf9d7 (diff) |
[Support] Fix up comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/PathV2.inc')
-rw-r--r-- | lib/Support/Unix/PathV2.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index b0f7ca91ff..3446c28e06 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/lib/Support/Unix/PathV2.inc @@ -366,14 +366,12 @@ error_code unique_file(const Twine &model, int &result_fd, } } - // Replace '%' with random chars. From here on, DO NOT modify model. It may be - // needed if the randomly chosen path already exists. + // From here on, DO NOT modify model. It may be needed if the randomly chosen + // path already exists. SmallString<128> RandomPath = Model; retry_random_path: - // This is opened here instead of above to make it easier to track when to - // close it. Collisions should be rare enough for the possible extra syscalls - // not to matter. + // Replace '%' with random chars. for (unsigned i = 0, e = Model.size(); i != e; ++i) { if (Model[i] == '%') RandomPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15]; |