llvm-project/llvm/lib/Transforms/ObjCARC
Saleem Abdulrasool 619b3269fd ObjCARC: do not increment past the end of the BB
The `BasicBlock::getFirstInsertionPt` call may return `std::end` for the
BB.  Dereferencing the end iterator results in an assertion failure
"(!NodePtr->isKnownSentinel()), function operator*".  Ensure that the
returned iterator is valid before dereferencing it.  If the end is
returned, move one position backward to get a valid insertion point.

llvm-svn: 316401
2017-10-24 00:09:10 +00:00
..
ARCRuntimeEntryPoints.h [IR] Abstract away ArgNo+1 attribute indexing as much as possible 2017-05-03 18:17:31 +00:00
BlotMapVector.h Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
DependencyAnalysis.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
DependencyAnalysis.h
LLVMBuild.txt
ObjCARC.cpp
ObjCARC.h [ObjCARC] Do not move a release between a call and a 2017-04-29 00:23:11 +00:00
ObjCARCAPElim.cpp
ObjCARCContract.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ObjCARCExpand.cpp
ObjCARCOpts.cpp [ObjCARC] Do not move a release that has the clang.imprecise_release tag 2017-10-16 16:46:59 +00:00
ProvenanceAnalysis.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ProvenanceAnalysis.h
ProvenanceAnalysisEvaluator.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
PtrState.cpp ObjCARC: do not increment past the end of the BB 2017-10-24 00:09:10 +00:00
PtrState.h Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00