diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-05-26 21:42:51 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-05-26 21:42:51 +0000 |
commit | 1ecdedad8d839f5522aabbbdf6dd17541f9cf501 (patch) | |
tree | f890649f2270f2fd88836af2074626f7291c16d0 /llvm/lib/Fuzzer/test/SimpleThreadedTest.cpp | |
parent | 7509d54b216924b592c1752eface9789f683d616 (diff) | |
download | llvm-1ecdedad8d839f5522aabbbdf6dd17541f9cf501.zip llvm-1ecdedad8d839f5522aabbbdf6dd17541f9cf501.tar.gz llvm-1ecdedad8d839f5522aabbbdf6dd17541f9cf501.tar.bz2 |
[LoopUnrollAnalyzer] Fix a crash in analyzeLoopUnrollCost.
Condition might be simplified to a Constant, but it doesn't have to be
ConstantInt, so we should dyn_cast, instead of cast.
This fixes PR27886.
llvm-svn: 270924
Diffstat (limited to 'llvm/lib/Fuzzer/test/SimpleThreadedTest.cpp')
0 files changed, 0 insertions, 0 deletions