]> granicus.if.org Git - clang/commit
[analyzer] Fix a bug in IdenticalExprChecker concerning while loops.
authorJordan Rose <jordan_rose@apple.com>
Fri, 21 Feb 2014 00:18:31 +0000 (00:18 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 21 Feb 2014 00:18:31 +0000 (00:18 +0000)
commiteea6674f33e53bdbb55ada491f8bfdb13a1725e1
tree064ec76e40387cdc911d55325756c5667f12d606
parent484a61d841284596753ac84c71983aeb468cff2a
[analyzer] Fix a bug in IdenticalExprChecker concerning while loops.

Somehow both Daniel and I missed the fact that while loops are only identical
if they have identical bodies.

Patch by Daniel Fahlgren!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201829 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
test/Analysis/identical-expressions.cpp