aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-12-30 16:14:40 +0000
committerFlorian Hahn <flo@fhahn.com>2021-01-01 13:54:41 +0000
commitd9f306aa52fe233a711af2d5baa0d6536f164b10 (patch)
treeda15913e83eab88c7eb9d270674ac3b9bf4a988f /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentda1bd953faafe433a6fa259641973866fc6d934c (diff)
downloadllvm-d9f306aa52fe233a711af2d5baa0d6536f164b10.zip
llvm-d9f306aa52fe233a711af2d5baa0d6536f164b10.tar.gz
llvm-d9f306aa52fe233a711af2d5baa0d6536f164b10.tar.bz2
[LV] Fix crash when generating remarks with multi-exit loops.
If DoExtraAnalysis is true (e.g. because remarks are enabled), we continue with the analysis rather than exiting. Update code to conditionally check if the ExitBB has phis or not a single predecessor. Otherwise a nullptr is dereferenced with DoExtraAnalysis.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions