diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-17 01:54:41 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-17 01:54:41 +0000 |
| commit | 362d120488722bf91824f8e74748459525d10614 (patch) | |
| tree | 4cce742540e5e290c9c28203de44b17661219825 /llvm/test/Bitcode/thinlto-function-summary.ll | |
| parent | 67c5885d091b6630040ee0f47af0e4a119389007 (diff) | |
| download | bcm5719-llvm-362d120488722bf91824f8e74748459525d10614.tar.gz bcm5719-llvm-362d120488722bf91824f8e74748459525d10614.zip | |
Scalar: Avoid dereferencing end() in IndVarSimplify
IndVarSimplify::sinkUnusedInvariants calls
BasicBlock::getFirstInsertionPt on the ExitBlock and moves instructions
before it. This can return end(), so it's not safe to dereference. Add
an iterator-based overload to Instruction::moveBefore to avoid the UB.
llvm-svn: 278886
Diffstat (limited to 'llvm/test/Bitcode/thinlto-function-summary.ll')
0 files changed, 0 insertions, 0 deletions

