aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/SymbolicFile.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-17 01:54:41 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-17 01:54:41 +0000
commit362d120488722bf91824f8e74748459525d10614 (patch)
tree4cce742540e5e290c9c28203de44b17661219825 /llvm/lib/Object/SymbolicFile.cpp
parent67c5885d091b6630040ee0f47af0e4a119389007 (diff)
downloadllvm-362d120488722bf91824f8e74748459525d10614.zip
llvm-362d120488722bf91824f8e74748459525d10614.tar.gz
llvm-362d120488722bf91824f8e74748459525d10614.tar.bz2
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/lib/Object/SymbolicFile.cpp')
0 files changed, 0 insertions, 0 deletions