diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2018-01-22 20:18:42 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2018-01-22 20:18:42 +0000 |
commit | d7d991e881fb3f74325a13cc80cc5467eb43af65 (patch) | |
tree | 0db0c50f5f83d06da2097479351b1aeeed634f6b /libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/test.pass.cpp | |
parent | ae858bf65fef652108ca926b1acf0a636a0fc057 (diff) | |
download | bcm5719-llvm-d7d991e881fb3f74325a13cc80cc5467eb43af65.tar.gz bcm5719-llvm-d7d991e881fb3f74325a13cc80cc5467eb43af65.zip |
[analyzer] Protect against dereferencing a null pointer
The check (inside StackHintGeneratorForSymbol::getMessage)
if (!N)
return getMessageForSymbolNotFound()
is moved to the beginning of the function.
Differential revision: https://reviews.llvm.org/D42388
Test plan: make check-all
llvm-svn: 323146
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/test.pass.cpp')
0 files changed, 0 insertions, 0 deletions