]> granicus.if.org Git - clang/commit
[Analyzer] Iterator Checkers - Fix for Crash on Iterator Differences
authorAdam Balogh <adam.balogh@ericsson.com>
Mon, 5 Aug 2019 06:45:41 +0000 (06:45 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Mon, 5 Aug 2019 06:45:41 +0000 (06:45 +0000)
commit06fe985aee144eb8922b820435dffe486acbe1f4
tree9b540f673577daf09a326a698dd669f41c523770
parent231854d01b9fb357b7334c6f799b4c9b639231b5
[Analyzer] Iterator Checkers - Fix for Crash on Iterator Differences

Iterators differences were mistakenly handled as random decrements which
causes an assertion. This patch fixes this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367802 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
test/Analysis/Inputs/system-header-simulator-cxx.h
test/Analysis/diagnostics/explicit-suppression.cpp
test/Analysis/iterator-range.cpp