aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2014-10-03 21:48:54 +0000
committerAnna Zaks <ganna@apple.com>2014-10-03 21:48:54 +0000
commit2d2f137ed4a794f494a6a763f342bba1ef492ed2 (patch)
tree66f2d536b796d347d2d52d0e3227f49d466ec788 /llvm/lib/Support/ErrorHandling.cpp
parentde952d118003838ad4fd724bfabc5c3335ec9c27 (diff)
downloadllvm-2d2f137ed4a794f494a6a763f342bba1ef492ed2.zip
llvm-2d2f137ed4a794f494a6a763f342bba1ef492ed2.tar.gz
llvm-2d2f137ed4a794f494a6a763f342bba1ef492ed2.tar.bz2
[analyzer] Make CStringChecker correctly calculate return value of mempcpy
The return value of mempcpy is only correct when the destination type is one byte in size. This patch casts the argument to a char* so the calculation is also correct for structs, ints etc. A patch by Daniel Fahlgren! llvm-svn: 219024
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions