]> granicus.if.org Git - clang/commit
[analyzer] Don't dereference the array value when binding it to a reference.
authorArtem Dergachev <artem.dergachev@gmail.com>
Thu, 12 Jan 2017 18:00:03 +0000 (18:00 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Thu, 12 Jan 2017 18:00:03 +0000 (18:00 +0000)
commitbff998afcb76cdded839a0121d44e619b04c5995
tree7608272d03079813789c8f2871995c6d974aa17b
parent271b0e8f7a167b5b733ba297ba1f185e50675e90
[analyzer] Don't dereference the array value when binding it to a reference.

This replaces the hack in r291754, which was fixing pr31592, which was
caused by r291754, with a more appropriate solution.

rdar://problem/28832541
Differential revision: https://reviews.llvm.org/D28602

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291781 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
lib/StaticAnalyzer/Core/ExprEngine.cpp