diff options
| author | Hans Wennborg <hans@hanshq.net> | 2018-11-27 14:15:37 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2018-11-27 14:15:37 +0000 |
| commit | 02f5511ff422b4ba6fcb75df320774132f23db56 (patch) | |
| tree | 4fafb2500a0fa37d1c3863064c7459540ed153be /clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp | |
| parent | 8c79706e89dd2792bcc7b1e44d8f5db6abaf1617 (diff) | |
| download | bcm5719-llvm-02f5511ff422b4ba6fcb75df320774132f23db56.tar.gz bcm5719-llvm-02f5511ff422b4ba6fcb75df320774132f23db56.zip | |
Revert r347419 "Update call to EvaluateAsInt() to the new syntax."
It's pre-requisite was reverted in r347656.
llvm-svn: 347657
Diffstat (limited to 'clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp | 4 |
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"); |

