[llvm] 562a19e - [Typo fix] RNG: Take pass name as argument instead of pass pointer.
Dominic Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 31 11:41:00 PST 2020
Author: Dominic Chen
Date: 2020-01-31T14:40:45-05:00
New Revision: 562a19e079d5317bfe7cd3c600ce2c3a66411fe1
URL: https://github.com/llvm/llvm-project/commit/562a19e079d5317bfe7cd3c600ce2c3a66411fe1
DIFF: https://github.com/llvm/llvm-project/commit/562a19e079d5317bfe7cd3c600ce2c3a66411fe1.diff
LOG: [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
Added:
Modified:
llvm/unittests/IR/ModuleTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/ModuleTest.cpp b/llvm/unittests/IR/ModuleTest.cpp
index 15180bcc729a..f642b002a5eb 100644
--- a/llvm/unittests/IR/ModuleTest.cpp
+++ b/llvm/unittests/IR/ModuleTest.cpp
@@ -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); });
}
More information about the llvm-commits
mailing list