mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[Typo fix] RNG: Take pass name as argument instead of pass pointer.
Summary: With the new pass manager, it is not possible to obtain a pointer to the pass. Reviewers: jfb, rinon, yln Subscribers: hiraditya, dexonsmith, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73390
This commit is contained in:
@@ -63,7 +63,7 @@ TEST(ModuleTest, randomNumberGenerator) {
|
||||
|
||||
std::array<int, NBCheck> RandomStreams[2];
|
||||
for (auto &RandomStream : RandomStreams) {
|
||||
std::unique_ptr<RandomNumberGenerator> RNG = M.createRNG(DP->getPassName());
|
||||
std::unique_ptr<RandomNumberGenerator> RNG = M.createRNG(DP.getPassName());
|
||||
std::generate(RandomStream.begin(), RandomStream.end(),
|
||||
[&]() { return dist(*RNG); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user