summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAnton Yartsev <anton.yartsev@gmail.com>2016-05-19 23:03:49 +0000
committerAnton Yartsev <anton.yartsev@gmail.com>2016-05-19 23:03:49 +0000
commit8a88b908175add70df1c67c2eef3d00755c33428 (patch)
tree9496c05f29e872ae74dc44c5375f59febf4d262c /llvm/lib/CodeGen
parentbb578ef0dd7eebacebfb03a2e7bdfb3e3ba26b7e (diff)
downloadbcm5719-llvm-8a88b908175add70df1c67c2eef3d00755c33428.tar.gz
bcm5719-llvm-8a88b908175add70df1c67c2eef3d00755c33428.zip
[analyzer] Fix for PR23790 : constrain return value of strcmp() rather than returning a concrete value.
The function strcmp() can return any value, not just {-1,0,1} : "The strcmp(const char *s1, const char *s2) function returns an integer greater than, equal to, or less than zero, accordingly as the string pointed to by s1 is greater than, equal to, or less than the string pointed to by s2." [C11 7.24.4.2p3] https://llvm.org/bugs/show_bug.cgi?id=23790 http://reviews.llvm.org/D16317 llvm-svn: 270154
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud