diff options
author | Jordy Rose <jediknil@belkadan.com> | 2012-05-14 17:58:35 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2012-05-14 17:58:35 +0000 |
commit | 459d5f62c29ee20f5e1df1a3d92c7fde1cdb2724 (patch) | |
tree | 1a206f89a8d819a3f8025fa6cdfbefb610069a38 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 77e7b8ede2b87b0be45bc034c0bdde5e299452e9 (diff) | |
download | bcm5719-llvm-459d5f62c29ee20f5e1df1a3d92c7fde1cdb2724.tar.gz bcm5719-llvm-459d5f62c29ee20f5e1df1a3d92c7fde1cdb2724.zip |
[analyzer] strncpy: Special-case a length of 0 to avoid an incorrect warning.
We check the address of the last element accessed, but with 0 calculating that
address results in element -1. This patch bails out early (and avoids a bunch
of other work at that).
Fixes PR12807.
llvm-svn: 156769
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions