[llvm] be252b4 - Fix MSVC unused variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 04:03:23 PST 2023
Author: Simon Pilgrim
Date: 2023-11-15T11:59:07Z
New Revision: be252b4e28ad1d964500079114ea0e0a56bb0a19
URL: https://github.com/llvm/llvm-project/commit/be252b4e28ad1d964500079114ea0e0a56bb0a19
DIFF: https://github.com/llvm/llvm-project/commit/be252b4e28ad1d964500079114ea0e0a56bb0a19.diff
LOG: Fix MSVC unused variable warning. NFCI.
RunRandTest is driven by a fixed seed, not a random_device
Added:
Modified:
llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp b/llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
index 7a86e28ed59e6ad..61a2031a8f81fd8 100644
--- a/llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
+++ b/llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
@@ -407,7 +407,6 @@ static void RunRandTest(uint64_t Seed, int Size, int MinCount, int MaxCount,
LLVMContext C;
SMDiagnostic Err;
- std::random_device dev;
std::mt19937 Rng(Seed);
std::uniform_int_distribution<int> DistCount(MinCount, MaxCount);
std::uniform_int_distribution<unsigned> DistValue(0, MaxValue);
More information about the llvm-commits
mailing list