[PATCH] Random Number Generator Refactoring (removing from Module)

Stephen Crane sjcrane at uci.edu
Tue Aug 19 14:46:29 PDT 2014


================
Comment at: lib/Support/RandomNumberGenerator.cpp:48
@@ -53,1 +47,3 @@
+  std::vector<uint32_t>::iterator I = Data.end();
+  I = std::copy(Salt.begin(), Salt.end(), I);
 
----------------
JF Bastien wrote:
> Can you do away with I here, pass it straight to `std::copy`? Or use `auto`?
Good catch. Was left over from having 2 salts.

http://reviews.llvm.org/D4377






More information about the llvm-commits mailing list