[llvm-commits] [llvm] r156239 - /llvm/trunk/lib/Support/Unix/PathV2.inc

Daniel Dunbar daniel at zuster.org
Sat May 5 09:39:22 PDT 2012


Author: ddunbar
Date: Sat May  5 11:39:22 2012
New Revision: 156239

URL: http://llvm.org/viewvc/llvm-project?rev=156239&view=rev
Log:
[Support] Fix up comments.

Modified:
    llvm/trunk/lib/Support/Unix/PathV2.inc

Modified: llvm/trunk/lib/Support/Unix/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=156239&r1=156238&r2=156239&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Unix/PathV2.inc Sat May  5 11:39:22 2012
@@ -366,14 +366,12 @@
     }
   }
 
-  // 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];





More information about the llvm-commits mailing list