summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp b/clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
index 6ae9bd29b8e..256525e35a9 100644
--- a/clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
+++ b/clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
@@ -101,8 +101,8 @@ void ProperlySeededRandomGeneratorCheck::checkSeed(
return;
}
- Expr::EvalResult EVResult;
- if (Func->getArg(0)->EvaluateAsInt(EVResult, *Result.Context)) {
+ llvm::APSInt Value;
+ if (Func->getArg(0)->EvaluateAsInt(Value, *Result.Context)) {
diag(Func->getExprLoc(),
"random number generator seeded with a constant value will generate a "
"predictable sequence of values");
OpenPOWER on IntegriCloud