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 | 58ed0c6c09bc5822ea5cdc764ec105770c029c2c (patch) | |
tree | 8ba2a46fd629f132353ed125d24be256858fd8ea /llvm/lib/Support/Unix | |
parent | 3f0fa19bc45ee9f14ff8a07b3e09ab0e731e2609 (diff) | |
download | bcm5719-llvm-58ed0c6c09bc5822ea5cdc764ec105770c029c2c.tar.gz bcm5719-llvm-58ed0c6c09bc5822ea5cdc764ec105770c029c2c.zip |
[Support] Fix up comments.
llvm-svn: 156239
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/PathV2.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc index b0f7ca91ff0..3446c28e06d 100644 --- a/llvm/lib/Support/Unix/PathV2.inc +++ b/llvm/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]; |